How to override default primary key in Rails?
Rails is about CoC, the convention is to use :id as the primary key. So what if you want something different as your primary key? Author Trung Lê will walk you through few simple tricks that does the justice. Read more on his blog at:
http://ruby-journal.com/how-to-override-default-primary-key-id-in-rails/
Post a comment