I'm setting up some link_to xml views within a rails app. How can the url display the .xml extension?
Need it to appear as:
http://localhost:3000/test/1-testing.xml
Currently it appears as:
http://localhost:3000/test/1-testing
I'm setting up some link_to xml views within a rails app. How can the url display the .xml extension?
Need it to appear as:
http://localhost:3000/test/1-testing.xml
Currently it appears as:
http://localhost:3000/test/1-testing
Assuming you want to link to the instance @test, try:
test_url(@test, :format => :xml)