Forum: Ruby on Rails Restful routes for ajax?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community 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
explicit

  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

--
Michael S.
mailto:removed_email_address@domain.invalid
http://www.schuerig.de/michael/
This topic is locked and can not be replied to.