I'm trying to send the id's of bunch of posts to javascript but
instead of id's I'm getting something like:
#<Post:0x1044e7078>#<Post:0x1044e6fd8>
What am I doing wrong ?
You're sending the post itself. Without seeing your code it's gonna
be hard to provide more info.
Guessing I'd say you maybe want...
@posts.to_json
or something.
--
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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.