in my ruby application I manage a MySQL db.
The url are generated by the classic command line link_to or url_for.
For image I use the command:
<img src="<%= url_for(:action=>“picture”, :id=>@pictures.id)-%>" …
so the URL generated is:
I would like to generate an URL like this one:
Can you help me?
Thank you very much!