Forum: Ruby on Rails Restful routes for ajax?

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.
Michael S. (Guest)
on 2007-01-16 20:11
(Received via mailing list)
I'm looking for examples using resource-base, aka restful, routes for
ajax requests. So far, I've resorted to adding routes for ajax with

  map.connect ':controller/update_ui/:id', :action => 'update_ui'

Presumably, the same could be done with something like

  map.resources :mymodels, :member => { :update_ui => :get }

The problem I've encountered there is that it breaks down when I try to
use it from a view that shows a new object and thus doesn't have an id.


Michael S.
This topic is locked and can not be replied to.