I have the following in my controller:
@quest = Quest.find(params[:id])
respond_to do |format|
And in my routes:
I have two views for this action, quests/show.rhtml and
quests/show.rxml. Now what I would expect as a response to
‘/quests/1.xml’ is that Rails sends, as XML, the rendered rxml view.
What happens instead is that the rxml view is rendered inside the
default html layout! How can that be?