Ok i found the solution:
http://stackoverflow.com/questions/7195473/rails-3-why-is-my-postshow-view-showing-all-of-its-comments-database-data-in
The problem is in the view perhaps you have =
it's the = in the @comments.each tag. It is returning the result of
each, which is the whole array.
i'm not sure what you mean by styled. json usually looks like this
{user:{name:'fred',age:65}}. what kind of styling did you want to apply to
that? i'm guessing, but it sounds like you're looking for html elements to
be returned?
typically after the request happens you can just use jquery's
Fernando Jesus wrote in post #571:
Have u solve your problem? i have the same issue U_U but without
coffeeScript
Sorry to say, but no I didn't. Still looking.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups Ruby
on
Have u solve your problem? i have the same issue U_U
--
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
Benjamin Iandavid Rodriguez wrote in post #1110828:
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
I get an array back in json. That is loaded but without styling.
--
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
6 matches
Mail list logo