Rails has poor documentation. The way a lot of the stuff is dynamically generated really sucks, it needs to pick up its game here.
I needed to create a link to a dynamically generated csv file. Cool, I’ll just look up the documentation…crap! nothing there. I’ll just then google and google and google. After about half an hour I found it…
This was my original link all nice and restful
<%= link_to “report” report_customers_url %>
Then to convert it into a url that points to my dynamically created csv file I need to do this:
<%= link_to “report” formatted_report_customers_url(:csv) %>
Advertisement
Tags: Ruby on Rails
November 17, 2007 at 7:09 pm
Yeah really the Documentation from most of the Web Application Frameworks
is really poor. It’s the same with Script.acoul.us, CakePHP,…