Hi there fellows !
I'm currently working on a JSon view and had to make my own view (for
simple ActiveSupport::JSON can't do the trick anymore).
The thing is, after my controller does this :
respond_to
format.html
format.json
end
It does use the correct view in the correct context. Yet, the json view
is filtered and the unsupported characters of HTML are modified.
So this is pretty much what I get :
{"created_at":"2011-07-28T15:38:36Z"}
When all I really wanted was :
{"created_at":"2011-07-28T15:38:36Z"}
What's up with that ? How may I prevent this filtering to happen ?
--
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 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.