Hi,
I'm rendering a json response from my controller simply as:
hobo_show do
@this = find_instance
render :json => @this.drill_detail
end
Problem is the response posts as content-type="text/html".
Rails 3 doc says it should render as "application/json".
I've tried changing the render line to:
render :json => @this.drill_detail, :content_type =>
'application/json'
But, still "text/html".
How do I get content-type='application/json'
Thank you in advance! I really appreciate all the posts you all do that
keep me moving well with Hobo!
-Paul
I'm currently using hobo 1.3.0-pre31
--
You received this message because you are subscribed to the Google Groups "Hobo
Users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/hobousers/-/QtAzqoG3PNMJ.
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/hobousers?hl=en.