Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

render :json => nil

#2589

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

Reported by ransom-briggs (at uiowa) · April 30th, 2009 @ 10:42 PM

State: resolved
Milestone: 2.x
Assigned to: Jeremy Kemper Jeremy Kemper
Importance: none

Activity

  1. ransom-briggs (at uiowa)
    ransom-briggs (at uiowa)
    • Assigned user set to Jeremy Kemper

    April 30th, 2009 @ 10:48 PM

  2. Repository
    Repository
    • State changed from new to resolved

    (from [f0b9e2861943d32ca73a53ab5fb6f86d10c89b04]) Fix render :json => nil [#2589 render :json => nil state:resolved] http://github.com/rails/rails/co...

    May 1st, 2009 @ 12:34 AM

  3. Repository
    Repository

    (from [7c4b325e0a3a73d7910b8cad062d1154d47e225b]) Fix render :json => nil [#2589 render :json => nil state:resolved] http://github.com/rails/rails/co...

    May 1st, 2009 @ 12:48 AM