Wrangling Rails

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!

Trackbacks

close Reblog this comment
blog comments powered by Disqus