Linking to restful admin controllers

hi

following the notes from DHH’s keynote at Euro RailsConf 07 ive
created a restful admin controller and im wondering how i link to this
using restful helpers?

obviously edit_post_path(post) for example will no longer work and i
dont think nesting posts in admin will work either because their are
now two seperate posts controllers.

anyone?

here are the notes taken by casper fabricious:
http://casperfabricius.com/blog/2007/09/18/railsconf2007-dhh/

edit_admin_users_path(@user) will take you to /admin/users/1/edit

Scott

Marc Rice wrote:

hi

following the notes from DHH’s keynote at Euro RailsConf 07 ive
created a restful admin controller and im wondering how i link to this
using restful helpers?

Marc Rice wrote:

following the notes from DHH’s keynote at Euro RailsConf 07 ive
created a restful admin controller and im wondering how i link to this
using restful helpers?

obviously edit_post_path(post) for example will no longer work and i
dont think nesting posts in admin will work either because their are
now two seperate posts controllers.

I find it easier when I can see what’s going on. The “rake routes” task
will dump a list of all your routes and their names. Add _path or _url
to the name to get your helper of choice.


Josh S.
http://blog.hasmanythrough.com