Rails: generate scaffold Product Admin overwrites admin pages
- From: "Phlip" <phlipcpp@xxxxxxxxx>
- Date: Fri, 15 Sep 2006 17:19:07 GMT
[This post belongs on the Rails mailing list but its server is full]
Rubies:
I'm up to the infamous Page 57 in Joel Spolsky's most favoritest book in the
whole world, /Agile Web Development with Rails/ by the Daves.
It says:
ruby script/generate scaffold Product Admin
That makes an instant view and editor into the Product model and database
table.
Now suppose I want to, uh, create a second database table, and I need a
second administration view on it. So I create the table, and then run this:
ruby script/generate scaffold AnotherTable Admin
The system overwrites (with permission) the exiting administration files.
What's the fix? Should I rename the prior files? If so, what's the exact
list to rename, and how to keep them linked in?
--
Phlip
http://www.greencheese.us/ZeekLand <-- NOT a blog!!!
.
- Prev by Date: Re: A better syntax highlighting color scheme for Ruby code
- Next by Date: Re: Benchmark for Ruby
- Previous by thread: readline() with editing and history?
- Next by thread: not sure what is wrong. strange error
- Index(es):