toulax-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-May-11 17:36 UTC
REST with slash instead of semicolon without using edge
Is there a simple way to "monkey-patch" a Rails app to have RESTful URLs use "/" instead of ";" without having to use Edge Rails? Thanks! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Pierre-Alexandre Meyer
2007-May-11 17:51 UTC
Re: REST with slash instead of semicolon without using edge
On Fri, May 11, 2007 at 10:36:01AM -0700, toulax-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote :> Is there a simple way to "monkey-patch" a Rails app to have RESTful > URLs use "/" instead of ";" without having to use Edge Rails?rake rails:freeze TAG=rel_1-2-3 cp vendor/rails/actionpack/lib/action_controller/resources.rb \ vendor/rails/actionpack/lib/action_controller/resources.rb.old svn diff -r6419:HEAD \ vendor/rails/actionpack/lib/action_controller/resources.rb > \ my_home_made.patch cd vendor/rails/actionpack/lib/action_controller/ && patch -p0 my_home_made.patch Run rails tests to ensure the patch only modifies this part of the routes. My $0.02, -- ,========================. | Pierre-Alexandre Meyer | | email : pam-1sEOgp2Wo8Qdnm+yROfE0A@public.gmane.org | `========================'' --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Ben Munat
2007-May-12 08:54 UTC
Re: REST with slash instead of semicolon without using edge
Just declare a map.connect path for it in routes.rb before the map.resource line. You don''t get the url-helper-goodness tho... b toulax-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote:> Is there a simple way to "monkey-patch" a Rails app to have RESTful > URLs use "/" instead of ";" without having to use Edge Rails? > > Thanks! > > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---