Displaying 1 result from an estimated 1 matches for "admin_post_path".
2008 May 04
1
scaffolding with namespace
...ipt/generate scaffold admin/post title:string
the migration would generate a table "admin_posts".
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))
I think there has to be a simpler way.
Tia,
Martin
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3M...