Bir ray uygulaması içinde bazı link_to xml görünümleri ayarlıyorum. URL, .xml uzantısını nasıl görüntüleyebilir?URL'ye uzantı ekleniyor: Raylar
Need it to appear as:
http://localhost:3000/test/1-testing.xml
Currently it appears as:
http://localhost:3000/test/1-testing
Bu benim olduğu bağlantı kodu: <% = link_to 'Harita', {: action => 'map',: id => giriş,: format =>: xml}%> Ve şu şekilde görüntülenir: http: // localhost: 3000/entries/map/1-sample-form? Format = xml Ve olması gereken: http: // localhost: 3000/entries/map/1-sample-form.xml – Jeffrey