Displaying 1 result from an estimated 1 matches for "companies_url".
2007 Jan 16
2
RESTful routes and Mime::Type
...nerating a link to fetch the
CSV file than just making a hard link. This is what I use for the
moment (and it works btw):
<%= link_to("Export as CSV","/companies.csv") -%>
I would expect the link helper to have something like
<%= link_to("Export as CSV",companies_url(:type => :csv) -%>
but haven''t found anything in the rails docs to generate the URL in
this way.
Best regards
Peter De Berdt
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Ta...