How does rails know how to find my movie?

I have the following HAML

%div{'id' => getting_started_div}
  %span{'id' => getting_started_span}
    %a{'id' => getting_started_a,
       'href' => '/videos/msg_ralph2.shnelvar_16_Dec_2010_07_58_59.wmv'}
      'Free Edition'

When the user clicks on "Free Edition" the link is
  http://localhost:3000/videos/msg_ralph2.shnelvar_16_Dec_2010_07_58_59.flv

How does Rails know to serve up stuff in
  public/videos/msg_ralph2.shnelvar_16_Dec_2010_07_58_59.flv

I see nothing in routes.rb that tells it to do that.

Is this one of those convention over configuration things?

Ralph Shnelvar wrote in post #970670:

I have the following HAML

%div{'id' => getting_started_div}
  %span{'id' => getting_started_span}
    %a{'id' => getting_started_a,
       'href' => '/videos/msg_ralph2.shnelvar_16_Dec_2010_07_58_59.wmv'}
      'Free Edition'

When the user clicks on "Free Edition" the link is
  http://localhost:3000/videos/msg_ralph2.shnelvar_16_Dec_2010_07_58_59.flv

How does Rails know to serve up stuff in
  public/videos/msg_ralph2.shnelvar_16_Dec_2010_07_58_59.flv

I see nothing in routes.rb that tells it to do that.

Right. The core framework does this by default, or perhaps the Web
server does. This is not susceptible to routing.

Come to think of it, this is probably done in the Rack layer.

Is this one of those convention over configuration things?

No: it's a convention, but it's not configurable.

Best,