On Jul 7, 2007, at 5:04 AM, Josh Peek wrote:

> Referring to brandon's example... (http://pastie.caboo.se/76204)
>
> It seems to me like it should act that way. If I wanted to change the
> template format, I would do render :action =>
> "index.html.erb", :layout => false (Not tested, but I hope works)

Nope, it doesn't. render :template => 'path/to/template.html.erb'  
works, but then if there are any HTML partials, or an HTML layout, it  
can't find them.

> I just don't really see it as a bug, although, I've never been in the
> exact scenario as described. If I need to render a partial from a js
> request, I would do it from within an another rjs template, which
> works.

I just don't think that the content type should mandate the template  
format. It should prefer a specific format, but if that format  
doesn't exist, I think it should use the Accepts header to determine  
other template formats.

I'm looking into a patch for this.

Brandon

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to