Estoy configurando algunas vistas de link_to xml dentro de una aplicación de rieles. ¿Cómo puede la url mostrar la extensión .xml?Agregar extensión a URL: Rails
Need it to appear as:
http://localhost:3000/test/1-testing.xml
Currently it appears as:
http://localhost:3000/test/1-testing
Este es mi código de enlace: <% = link_to 'Map', {: action => 'map',: id => entry,: format =>: xml}%> Y se muestra como: http: // localhost: 3000/entries/map/1-sample-form? Format = xml Y debe ser: http: // localhost: 3000/entries/map/1-sample-form.xml – Jeffrey