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,
--
Marnen Laibow-Koser
http://www.marnen.org
[email protected]
Sent from my iPhone
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.