ajax :update option with Rails 3

TomRossi7
Sat, 11 Dec 2010 03:46:42 -0000

With Rails 2.3.9, I could use the :update option with an ajax helper
if I just wanted to update the contents of an element.  The controller
action looked liked this:

format.js { render :parital => ''_updated_object'', :layout
=> false }

I''m trying to figure out how to accomplish the same thing with Rails 3
ujs?  I know I can accomplish this by having the controller render an
function to update the html, but I would rather define that in my
application.js.  Does that make sense?

Thanks,
Tom

--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at