Oops ;-p Please forgive the previous, premature send. To restart…
I’ve been working through the “Rolling with Ruby on Rails” tutorial and
have come up against something I’m hoping someone here can help me
understand.
In part one of the tutorial Curt steps the reader through the use of
‘generate controller’ and ‘generate model’. Way cool. In part two, he
briefly introduces the new ‘generate scaffold’ but continues on using
what I thought was an equivalent approach that simply required more
steps on the programmer’s part. That is, I figured ‘generate scaffold’
was a ‘roll up’ of existing functionality. Unfortunately, my
investigation of ‘generate scaffold’ leaves me scratching my head.
Specifically…
The use of “generate controller” results in the creation of a
‘recipe_controller.rb’ file and a ‘…\views\recipe’ folder. The use of
‘generate scaffold’ creates ‘recipes_controller’ and ‘…\views\recipes’.
Class names within the controller are different too.
With ‘convention’ playing such an important role in Ruby and Rails, I’ve
got the feeling that I should understand what’s going on here. Can
anyone help?
Thanks,
Bill