[Rails] Routing: Best default route for static files?

Wes Gamble weyus at att.net
Tue Aug 8 23:04:23 GMT 2006


All,

I have several image files that I'm serving from my app.

I get lots of "ActionController::RoutingError" errors in my log, but 
then these files are served anyway by Apache.

Here is my routes.rb file:

  map.connect '', :controller => 'e_simply', :action => 'login_form'
  map.connect ':controller/:action/:id/:data', :data => nil
  map.connect ':controller/:action/*filename'

1) What is the best route to use to allow anything through that I would 
put at the bottom of this list so that I don't get routing errors when 
the browser requests a static image file, for example?

Wes


-- 
Posted via http://www.ruby-forum.com/.


More information about the Rails mailing list