Forum: Ruby on Rails update a div element without having a corresponding action

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.
Chris Larson (Guest)
on 2006-03-31 21:23
(Received via mailing list)
Rails group,

I'm looking to update a div element with a page link without having
to write a corresponding action to populate that element.

I've tried:
<%= link_to_function "cancel", page.replace_html("control", :partial
=> "controls") %>

Basically I'm trying to limit the amount of methods that serve my
Ajax calls that only render a partial.

Thanks,
Chris
This topic is locked and can not be replied to.