# Linking to restful admin controllers

**URL:** <https://www.ruby-forum.com/t/linking-to-restful-admin-controllers/117653>\
**Category:** Rails\
**Created:** [October 18, 2007, 11:37pm UTC](https://www.ruby-forum.com/t/linking-to-restful-admin-controllers/117653 "2007-10-18T23:37:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![etikette](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/43a26b/32.png) [@etikette](https://www.ruby-forum.com/u/etikette)\
**Post date:** [October 18, 2007, 11:37pm UTC](https://www.ruby-forum.com/t/linking-to-restful-admin-controllers/117653/1 "2007-10-18T23:37:52Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![etikette](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/43a26b/32.png) [@etikette](https://www.ruby-forum.com/u/etikette)\
**Post date:** [October 18, 2007, 11:43pm UTC](https://www.ruby-forum.com/t/linking-to-restful-admin-controllers/117653/2 "2007-10-18T23:43:43Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![etikette](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/43a26b/32.png) [@etikette](https://www.ruby-forum.com/u/etikette)\
**Post date:** [October 19, 2007, 12:56pm UTC](https://www.ruby-forum.com/t/linking-to-restful-admin-controllers/117653/3 "2007-10-19T12:56:33Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![etikette](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/43a26b/32.png) [@etikette](https://www.ruby-forum.com/u/etikette)\
**Post date:** [October 19, 2007, 8:21am UTC](https://www.ruby-forum.com/t/linking-to-restful-admin-controllers/117653/4 "2007-10-19T08:21:20Z")

</div>

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](http://blog.hasmanythrough.com)
