scaffold generation

0 views
Skip to first unread message

No No

unread,
Dec 11, 2007, 7:26:58 AM12/11/07
to rubyonra...@googlegroups.com
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
--
Posted via http://www.ruby-forum.com/.

jason white

unread,
Dec 11, 2007, 7:56:01 AM12/11/07
to rubyonra...@googlegroups.com
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

Reply all
Reply to author
Forward
0 new messages