This project is archived and is in readonly mode.
render :json => nil
Reported by ransom-briggs (at uiowa) | April 30th, 2009 @ 10:42 PM | in 2.x
render :json => nil causes render to ignore :json
in actionpack/lib/action_controller/base.rb line 954 evaluates to false - this ends up failing out with a could not find method.erb error
954 elsif json = options[:json]
955 json = json.to_json unless json.is_a?(String)
956 json = "#{options[:callback]}(#{json})" unless options[:callback].blank?
957 response.content_type ||= Mime::JSON
958 render_for_text(json, options[:status])
959
960 elsif options[:partial]
attached a test which fails
Comments and changes to this ticket
-
ransom-briggs (at uiowa) April 30th, 2009 @ 10:48 PM
- Assigned user set to Jeremy Kemper
-
Repository May 1st, 2009 @ 12:34 AM
- State changed from new to resolved
(from [f0b9e2861943d32ca73a53ab5fb6f86d10c89b04]) Fix render :json => nil [#2589 state:resolved] http://github.com/rails/rails/co...
-
Repository May 1st, 2009 @ 12:48 AM
(from [7c4b325e0a3a73d7910b8cad062d1154d47e225b]) Fix render :json => nil [#2589 state:resolved] http://github.com/rails/rails/co...
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>
People watching this ticket
Attachments
Referenced by
- 2589 render :json => nil (from [f0b9e2861943d32ca73a53ab5fb6f86d10c89b04]) Fix ren...
- 2589 render :json => nil (from [7c4b325e0a3a73d7910b8cad062d1154d47e225b]) Fix ren...