back

Use memoize and to_param for easy rails permalinks

Not sure why anybody on rails 2.2 or above would really need permalink_fu when you can do this:

This is because the params[:id] in you Find(params[:id]) gets to_i called on it, I think. Have to look into that some other time.

You could then go on to memoize this stuff.

December 20, 2008

  1. Petko says:

    Thank you very much for the excellent tip!

  2. Mischa says:

    @petko Sure. This is def something I use all the time.