Archive for the ‘table’ Category

Wrangling Rails

Thursday, November 2nd, 2006

In a previous post I showed how to use non-conventional tables in your Rails app. A few days on from that and I have found two ActiveRecord model methods that make it even easier and better; set_primary_key and set_table_name.

This means I don’t even need to use any views as I was previously. Hurrah!