I don't know how to initialize information in a model before it is saved.
For example. I have a model called Car, and it has the attributes wheel_size, color, etc... I want to initialize these attributes depending on other factors for each new car.
This is how I'm doing it right now.
Class Car < ActiveRecord::Base
before_save :initial_information
def initial_information
self.color = value1
self.wheel_size = value2
end
end