Tag Archives: rubyonrails

initialize method in ActiveRecord::Base

I spent quite a few hours trying to figure out why User.new (where user is a model) would not use the virtual attributes defined in the model class. Virtual attributes are the ones without a corresponding column in the table. … Continue reading

Posted in Rails | Tagged | Leave a comment