Restful Rails – Driving me crazy

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:

One Response to “Restful Rails – Driving me crazy”

  1. yuri41 Says:

    Yeah really the Documentation from most of the Web Application Frameworks
    is really poor. It’s the same with Script.acoul.us, CakePHP,…

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s


Follow

Get every new post delivered to your Inbox.