Chris M. wrote:
On 11/22/06, ed [email protected] wrote:
any help will be appreciated.
hate to ask the obvious (to me at least), but have you generated the
more info would be nice. what steps have you done so far?
Open Source & Web Standards Advocate
Hi Chris, I generated the models and controllers and then manually added
the scaffold code to the relevant controller. The app works fine now
(well once I got used to the plurals way of rails ) and all the
relevant views folders are there, just not the .rhtml pages.
You need to create them yourself, or actually generate the scaffold.
if in your controller you have:
class Foo < ApplicationController
@foos = Foo.find(:all)
Then you need to create a view in:
Or alternatively, you can run the scaffold generator which writes out
the controller code and rhtml templates so you can start messing with
ruby script/generate scaffold MyModel