I think that your best/only option is to map those custom actions
using specific named routes:
map.resources :users, :collection => {:authenticate => :get}
map.connect ''users/authenticate.xml'', :controller =>
''users'', :action
=> ''authenticate'', :format => ''xml''
bye
Luca
2007/7/21, Matthew Isleb
<rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>:>
> Hi, I''m currently starting a new Rails app using Edge so I can
utilize
> the Active Resources client. The app I am consuming resources from is a
> production 1.2.3 app (I can''t easily go Edge with it). The problem
I''m
> having is that Edge has changed the Resources URL structure. In my
> production app, the URL for a custom action would be
> /users.xml;authenticate. In Edge is is something like
> /users/authenticate.xml.
>
> s there any way to easily make them compatible or am I just SOL by this
> query string change until I can update the production app to Edge Rails?
>
> I suppose I could simply construct my own query strings in the client,
> but that kinda takes the fun out of Active Resources.
>
> -matthew
>
> --
> 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
-~----------~----~----~----~------~----~------~--~---