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.
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
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
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
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.
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
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: