Re: ajax :update option with Rails 3

TomRossi7
Sun, 12 Dec 2010 01:36:10 -0000

I haven''t heard a reply and am wondering if I wasn''t clear or
just
totally in left field with the question?

On Dec 10, 10:46 pm, TomRossi7
<t...-5bxIUPmzHicFraO2wh7vUA@public.gmane.org>
wrote:
> 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@googlegroups.com.
For more options, visit this group at