Hi,

   I am trying to render a has as a json format from my controller to a 
json template with respond_with(@user).

   But the json view renders it a messy.

* "message" : "{:user_id=>"10803", 
:action_name=>"new", :date=>"18-12-2015", 
:type=>"*

*GEN", :version=>"400"}",   *In my console I am getting the 
hash output as @user=



*   {:user_id=>"10803", :action_name=>"new", :date=>"18-12-2015", :type=>"GEN", 
:version=>"400"} *How can I output in the json template as in the console 
format.



-- 
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+unsubscr...@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/20e80e95-4adc-4388-ab19-e5a945f9b749%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to