[Rails-core] Re: Question about Rails 2.x behavior

2009-08-09 Thread Matt Jones
On Aug 9, 2009, at 1:46 AM, Michael Koziarski wrote: In Rails 2.x, if you have an XML template, and try to render a template that does not have an XML version, but does have an HTML version, it will be rendered. XML and HTML are just examples; this is true for any two mime types.

[Rails-core] Re: Question about Rails 2.x behavior

2009-08-09 Thread Yehuda Katz
Kieran P wrote: Hey, Yes, it should assume a file of the same type, and raise if there isn't. i.e. index.html.erb renders 'example' , should find example.html.erb or raise Same with xml: index.xml.erb renders 'example' , should find example.xml.erb or raise But overwrites

[Rails-core] Re: Question about Rails 2.x behavior

2009-08-09 Thread Yehuda Katz
Mislav Marohnić wrote: On Sun, Aug 9, 2009 at 05:19, Yehuda Katz wyc...@gmail.com mailto:wyc...@gmail.com wrote: In Rails 2.x, if you have an XML template, and try to render a template that does not have an XML version, but does have an HTML version, ... Am I the only one

[Rails-core] Re: Question about Rails 2.x behavior

2009-08-08 Thread Jeremy McAnally
Yeah I definitely agree that this should change. It's actually bitten me a couple of times where I, when writing my initial tests, would forget to write the XML view, but the test still passed because it rendered the HTML template. Bad Rails! Bad! Would love to see this implemented to be more

[Rails-core] Re: Question about Rails 2.x behavior

2009-08-08 Thread Luke Melia
I've always thought this behavior to be strange and would not miss it. -Luke On Aug 8, 11:19 pm, Yehuda Katz wyc...@gmail.com wrote: In Rails 2.x, if you have an XML template, and try to render a template that does not have an XML version, but does have an HTML version, it will be rendered.

[Rails-core] Re: Question about Rails 2.x behavior

2009-08-08 Thread Mark Turner
On Aug 8, 8:19 pm, Yehuda Katz wyc...@gmail.com wrote: In Rails 2.x, if you have an XML template, and try to render a template that does not have an XML version, but does have an HTML version, it will be rendered. XML and HTML are just examples; this is true for any two mime types. Is this

[Rails-core] Re: Question about Rails 2.x behavior

2009-08-08 Thread Michael Koziarski
In Rails 2.x, if you have an XML template, and try to render a template that does not have an XML version, but does have an HTML version, it will be rendered. XML and HTML are just examples; this is true for any two mime types. I'm guessing that the historical basis for this behaviour is: