Ruby on Rails Friday, December 12, 2014

of course!

No piece of code that I write on a mailing list has actually been run, it's just all from my brain. Take all advice with a skeptical eye for omissions/errors like that. 


On Dec 12, 2014, at 12:31 AM, Matt Jones <al2o3cr@gmail.com> wrote:

This won't work, unfortunately - `validates_uniqueness_of` is expecting a column name. Swapping in :user_id would, though.


No comments:

Post a Comment