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? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
here are the notes taken by casper fabricious: http://casperfabricius.com/blog/2007/09/18/railsconf2007-dhh/> following the notes from DHH''s keynote at Euro RailsConf 07--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
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 Susser http://blog.hasmanythrough.com -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
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?-- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---