ruby on rails - How to write a link to a public file -


my Rails app, some files I have / public service who write me hyperlinks to ideas.

Is there a clean link_to ?

also anchor is nothing wrong in using the elements, so link_to Outputs anyway. However, all you need to do is:

  & lt;% = link_to 'some file', '/some_file.zip'% & gt;  

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -