Monthly Archives: March 2012

A smarter Rails url_for helper

Problem In my Rails application, I want to be able to determine a URL for any given model, without the calling code having to know the type of the model. Instead of calling post_path(@post) or comment_path(@comment), I want to just … Continue reading 

Posted in conventions, rails, ruby | 10 Comments