Martin wrote:
> is there a way to scaffold with namespace?
Don''t lean on scaffolds too much. Rails coding is generally not about
the
scaffolds.
> So I did now
> script/generate scaffold post title:string
> moved the controller, views manually to admin/... and had to change each
> link manually from (e.g.)
> redirect_to @post
> to
> redirect_to(admin_post_path(@post))
A generator produced rubber-stamp code for you to upgrade. The rest is up to
you.
Next, scaffolds are fun for people who understand databases, which means
they might not be the best solution for your customers. They might need
pages which lead them thru their workflow, regardless which models these
cross.
--
Phlip
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---