relative path - How do I link to an item in the public folder from views/controller_name/page1.html.erb in Ruby on Rails? -


I need to embed a flash movie in one of my ruby ​​on the Ruby app. Folder, but I'm not sure how it references from my page, which is located on views / controller_name / page1.html.erb . How do I do this?

Thanks for reading.

, for example public folder):

& lt;% = link_to "My Hot Link Test", "/flashmovie.swf"%>

Leading "/" is not strictly required, I looks like.

Sorry, the bit disappeared where you wanted to embed it, this is not linked to the opposite of the title of this question ;-) This is an easy way:

< / Div>

Comments