Ruby on Rails Discussions
How to discover Content-Type in ApplicationController
rubyonrails-talk
Hardbap
(Hardbap)
September 7, 2007, 6:10pm
1
Are you using respond_to in the controller's action to set the output type?
Related topics
Topic
Replies
Views
Activity
render :json not setting content type (Rails 3.0.3)
rubyonrails-talk
1
153
December 6, 2010
Render content-type text/html for json responses when application/json is not in HTTP_ACCEPT header
rubyonrails-core
0
190
July 5, 2013
render custom mime types
rubyonrails-talk
0
103
September 29, 2008
How to set custom type/format in controller's response_to?
rubyonrails-talk
0
129
June 18, 2012
before_filter that responds_to mime types
rubyonrails-core
0
140
February 14, 2008