Comments on: rails 3: can we get back to 6 steps? /2010/09/rails-3-can-we-get-back-to-6-steps/ Sarah Allen's reflections on internet software and other topics Wed, 22 Sep 2010 11:38:20 +0000 hourly 1 https://wordpress.org/?v=5.7.1 By: Sarah /2010/09/rails-3-can-we-get-back-to-6-steps/#comment-703 Wed, 22 Sep 2010 11:38:20 +0000 /?p=2810#comment-703 This is what we do for the workshops:
rails suggestotron -m http://gist.github.com/316450.txt

That’s ok for a one day class, but I wouldn’t want to rely on a template for longer class. For my personal use, templates are fine, but I find that I’m updating gems and rails versions and switching between projects often enough that it isn’t worth it to me to maintain a set of templates. I did think about whether there should be a short URL services for templates, but then I thought… why not just make it even simpler and still have a command that corresponds to each cognitive steps. The biggest problem with a template is that it hides what is inside it. With the “rails gem” idea it is kind of self-documenting.

]]>
By: Ben /2010/09/rails-3-can-we-get-back-to-6-steps/#comment-702 Wed, 22 Sep 2010 11:30:03 +0000 /?p=2810#comment-702 Hmm. Wouldn’t using a template solve this problem for you?

$ rails new myapp -m my_rspec_template
$ cd myapp
$ bundle install
$ rails generate rspec:install
$ rails generate scaffold note title:string content:text
$ rake db:migrate
$ rails server

It’s not *quite* as useful for introductory courses as the old way, since there’s the magical (to novices) template stuff in there, but it would let you focus more on the important stuff up front.

]]>