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?
--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
No comments:
Post a Comment