Я настраиваю некоторые ссылки link_to xml в приложении rails. Как url может отображать расширение .xml?Добавление расширения на URL: Rails
Need it to appear as:
http://localhost:3000/test/1-testing.xml
Currently it appears as:
http://localhost:3000/test/1-testing
Это мой Код ссылки: <% = link_to 'Map', {: action => 'map',: id => entry,: format =>: xml}%> И он отображается как: 10 http: // localhost: 3000/entries/map/1-sample-form? Format = xml И это должно быть: http: // localhost: 3000/entries/map/1-sample-form.xml – Jeffrey