[Rails] Rails 3 basic Get JSON with jQuery and output on the page flow question
Rails newbie, thanks for help with this hopefully basic JSON type
question....
I have a model Books in my app, which belong_to users.
What'd I'd like to learn how to do, is use jQuery to get a JSON object
of the books that the user owns (current_user). And then use jQuery to
list the results out on a div (id=targetdiv).
Where I'm not certain, is this something Rails 3 does out of the box?
Because I see the respond .js, but I think JSON is what is needed by
jQuery, right?
Thanks for helping me learn this!
--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home