Rails 2.1 breaks prototype’s responseJSON

It appears that a render of json:

RUBY:
render :json => {:blah => "hi"}.to_json

Is responding with a mime type of text/json instead of the previous application/json

The latest version of prototype (and previous versions) specifically looks for application/json in order to fill the responseJSON property of the response object.

No Comments Yet

You can be the first to comment!

Speak Your Peace

  • Comment Policy:Could go here if there's a nagging need Login Instructions: Would go here if there's a desire.