In my application I have a RESTful named route:
map.resources :discussions
And I''m attempting to generate a URL like:
/discussions/27.atom
using the discussion_url helper method.
The following:
discussion_url(:id => @discussion.id, :format => ''atom'')
just generates /discussions/27, ignoring the format parameter.
Anyone know the correct way of doing this? As far as I can see, the
docs have nothing to say on the matter.
Ta,
Ben
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---