Ajax request and html response


I wrote some action returns html response rendered with layout.
It is default rendering behavior.

When ajax request and rails 2.0.x, it returns html response rendered
with layout.
But rails 2.1.x, it returns html response without layout.
When ajax request with format=html explicitly, it returns html
response with layout.

Here is sample application patch: http://gist.github.com/22318

Is this expected change?


In ActionView::Template#set_extension_and_file_name,
set “rhtml” or “erb”(when “html.erb”) to @extension.
But @view.template_format is still :js.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs