Je configure des vues link_to xml dans une application rails. Comment l'URL peut afficher l'extension .xml?Ajout de l'extension à l'URL: Rails
Need it to appear as:
http://localhost:3000/test/1-testing.xml
Currently it appears as:
http://localhost:3000/test/1-testing
Ceci est mon code lien: <% = link_to 'Carte', {: action => 'carte',: id => entrée,: format =>: xml}%> Et il affiche comme: http: // localhost: 3000/entrées/carte/1-échantillon-forme? Format = xml Et il doit être: http: // localhost: 3000/entrées/map/1-sample-form.xml – Jeffrey