Ruby on Rails Friday, May 31, 2013

For what you say.

After you get the JSON response the partial is already processed so you just need to update the correct div with the correct info.

Use jQuery's append or html properties to update your divs.


2013/5/31 Paul Bergstrom <lists@ruby-forum.com>
I'm able to get json data back after an ajax call and into a div. But
how do I get it into html, styled format?

How about getting it to a partial? How do I do that in coffeescript?

--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/27f55d9596c7977ad612f3433528d425%40ruby-forum.com?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.



--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAHRDpXpvysMbmCZO%3DMX4%3DZAqf-K-Ve4FAot6RX_4f%2BN5L0V3EQ%40mail.gmail.com?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment