[ruby-it] Strano comportamento delle routes

Alessandro Scolavino scolas a gmail.com
Sab 8 Ago 2009 15:23:16 CEST


oggi ne ho trovata un altra :)

ho un file in
public/gallery/Company/1/attachments/Fattura_Proforma_30_07_2009.pdf

se punto il browser ottengo 2 cose:

1) download del file (comportamento corretto)
2)
ActionController::RoutingError (No route matches
"/gallery/Company/1/attachments/Fattura_Proforma_30_07_2009.pdf" with
{:method=>:get}):

Rendering /var/www/clerk/public/404.html (404 Not Found)

come elimino la seconda (non vedo la ragione di mettere una route per un
contenuto statico)?
-- 
Posted via http://www.ruby-forum.com/.


More information about the Ml mailing list