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!
This entry was posted
on Thursday, November 2nd, 2006 at 4:19 pm and is filed under AAA, Development, Ruby on Rails, database, identity, set_primary_key, set_table_name, table, table name, tables.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.
Add New Comment
Thanks. Your comment is awaiting approval by a moderator.
Do you already have an account? Log in and claim this comment.
Add New Comment
Trackbacks