Forum: Ruby on Rails Edge Rails Apps Consuming 1.2 Rails Resources

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Matthew I. (Guest)
on 2007-07-21 02:31
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

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.

Luca M. (Guest)
on 2007-07-21 16:51
(Received via mailing list)
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'


2007/7/21, Matthew I. <removed_email_address@domain.invalid>:
This topic is locked and can not be replied to.