render :update, :status => 500

Matt Zukowski
Wed, 12 Sep 2007 18:04:11 -0000

Is there a reason why render :update does not take the :status
parameter as most other forms of render do?

Unless I''m missing something, looking at ActionController::Base, this
should be as easy to fix as:

line 770 in actionpack-1.13.3/lib/actioncontroller/base.rb:

  render_javascript(generator.to_s)

becomes...

  render_javascript(generator.to_s, options[:status])


This is too easy, so there must be a good reason why it was explicitly
left out, right?