Scaffold generation

I’m trying to get a handle on rails 2.0. Once upon a time…

script/generate model book

edit migration

t.column :title, :string
t.column :description, :string

rake db:migrate

script/generate scaffold book

this would create a working MVC. Today, rails will not generate a
controller for an existing model. Am I missing something??

I was able to get this to work.

script/generate scaffold book title:string description:string

This is not supported in Rails 2.0

I was having the same problem, and uninstalled rails 2.0, and
reinstalled Rails 1.2.5
There is a new method for accomplishing this task, but for now i’m
going to follow the book.

jason

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs