This project is archived and is in readonly mode.
Wrong mime type in rjs response in Rails 2.2.2 (sometimes)
-
Kip Cole
I've rolled my site back to 2.2.0 for now so the examples above won't exhibit the behaviour I've described.
-
Kip Cole
Issue is that render_to_string now sets the response.content_type to nil (it didn't use to back in 2.2.0; I will track down the relevant commit).
This means that using render_to_string and render in the same request cycle will break stuff in an unanticipated way.
This ticket should be closed (I will open a proper one for the render_to_string issue).
-
josh
- State changed from new to wontfix
Closing by request.
Take a look at #870 js.rjs views no longer found after render_to_string call or #1182 render_to_string :partial sets response.content_type, they sound related.