|
Custom Templates Broken on Edge: msg#00180lang.ruby.rails.core
It seems that the format.html, format.xml, format.* response code has a slight problem with it. It seems that it is now taking any request for format.html and assuming that means... "#{actionname}.rhtml"... and that's definitely not cool for .haml and .mab people. Instead, we should append an r for xml and rss.... and leave ActionView's clever "template finding" code go to work to determine what we should do for html. I don't think its wrong to assume that AV should make basic assumptions that without a specialized ending, that we are talking about some sort of html renderer. This was the assumption up to a few weeks ago when the code in there got a little "cleanup" into a one-liner. Which, indeed is much prettier, however it leaves us delegate render people in the dust. The patch is up and ready to go! Its a simple exception for :html. http://dev.rubyonrails.org/ticket/6281 Cheers! -hampton. --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-core@xxxxxxxxxxxxxxxx To unsubscribe from this group, send email to rubyonrails-core-unsubscribe@xxxxxxxxxxxxxxxx For more options, visit this group at http://groups.google.com/group/rubyonrails-core -~----------~----~----~----~------~----~------~--~---
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: ActiveSupport::Multibyte for better Unicode support, David Goodlad |
|---|---|
| Next by Date: | Re: Why doesn't test:plugins set RAILS_ENV to 'test' on run?, evn |
| Previous by Thread: | [BUG?] Rails installation -- first in a series, Hendy Irawan |
| Next by Thread: | Re: Custom Templates Broken on Edge, DHH |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |