# Rails looks for .rhtml even when rxml exists

**URL:** <https://www.ruby-forum.com/t/rails-looks-for-rhtml-even-when-rxml-exists/133087>\
**Category:** Rails\
**Created:** [March 27, 2008, 4:34pm UTC](https://www.ruby-forum.com/t/rails-looks-for-rhtml-even-when-rxml-exists/133087 "2008-03-27T16:34:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![makire](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/fbc32d/32.png) [@makire](https://www.ruby-forum.com/u/makire)\
**Post date:** [March 27, 2008, 4:34pm UTC](https://www.ruby-forum.com/t/rails-looks-for-rhtml-even-when-rxml-exists/133087/1 "2008-03-27T16:34:20Z")

</div>

Hi

I am building XML using partials but for some (I cannot see a pattern  
for when it happens) cases I get the:

No such file or directory /app/views/content\_objects/news\_article/xml/  
partials/\_show.rhtml

The corresponding rxml file /app/views/content\_objects/news\_article/  
xml/partials/\_show.rxml exists and I would like Rails to look for it  
instead. For another case this works:

render :partial =\> “products/xml/partials/show”, :locals =\>  
{:xml\_instance =\> xml, :show =\> @product}

This finds the partial in /products/xml/partials/\_show.rxml

Does anyone have any input on this? Am I doing something wrong in the  
rendering? Is there a way to explicitly tell Rails which extension to  
look for?

Kindest regards

Erik L.
