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.

Neeraj Singh's latest activity

Saturday, January 22 2011
6226 before_filters overwriting each other was updated in Ruby on Rails
  • Neeraj Singh
    • Importance changed from to Low
    by Neeraj Singh at 2:47 AM

    This is how callbacks are working right now.

    class A < ApplicationController
     before_filter :ensure_logged_in, :only => [:index] 
     def index
      end
    end
    
    class B...
5875 render_to_string :json (or :xml or :update) before render results in DoubleRe... was updated in Ruby on Rails
Friday, January 21 2011
5875 render_to_string :json (or :xml or :update) before render results in DoubleRe... was updated in Ruby on Rails
  • Neeraj Singh
    Neeraj Singh commented at 8:49 PM

    Setting self.response_body = nil become [ nil ] because of this line of code

       # action_controller/metal.rb
       def response_body=(val)
          body = val.respon...
  • Neeraj Singh
    Neeraj Singh commented at 8:05 PM

    My tests were failing with setting self.response_body = nil

    def render_to_string
    .....
    self.response_body = nil
    end
    
    #/metal/rendering.rb
    puts response_body #=...
  • Neeraj Singh
    Neeraj Singh commented at 7:26 PM
  • Neeraj Singh
    Neeraj Singh commented at 7:23 PM

    LH did not attache my patch last time.

  • Neeraj Singh
    • State changed from new to open
    • Milestone set to 3.x
    • Tag changed from actioncontroller workaround doublerendererror render bug to actioncontroller workaround doublerendererror render bug, patched
    • Assigned user set to José Valim
    by Neeraj Singh at 7:21 PM

    This is an edge case. You will run into this error only if you are using

    render_to_string(:json => '')
    render_to_string(:xml => '')
    render_to_string(:js => '')...
Friday, January 14 2011
6227 Rails3 - accepts_nested_attributes_for reject_if is evaluated but ignored. was updated in Ruby on Rails