Hello,
In ActionView::Template#set_extension_and_file_name,
set "rhtml" or "erb"(when "html.erb") to
@extension.
But @view.template_format is still :js.
On Wed, Nov 5, 2008 at 8:44 PM, znz
<kzhr.nsym-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> Hello,
>
> 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?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---