RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: kaiuhl
For simple to_param overrides that append a name to the ID, I wrote a really simple gem called pretty_param. You can check out the logic https://github.com/kaiuhl/pretty-param/blob/master/lib/pretty_param.rb, but essentially it's just a better DSL for the most common to_param overrides with better filtering of special characters.