You can read more about rendering JSON here:
http://guides.rubyonrails.org/action_controller_overview.html#rendering-xml-and-json-data


Den söndagen den 17:e juni 2012 kl. 20:17:32 UTC+2 skrev Ruby-Forum.com 
User:
>
> Thank you guys for the answer, but I just did this: 
>
> render :json => ActiveSupport::JSON.encode( @return ) 
>
> -- 
> 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 view this discussion on the web visit 
https://groups.google.com/d/msg/rubyonrails-talk/-/8oyO_5CavwMJ.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to