What this error could be about? I'm defining an age at my account model:
def age
    birthday = DateTime.new(year_Of_Birth.to_i, month_Of_Birth.to_i, day_Of_Birth.to_i)
    self.age = ((DateTime.now - birthday) / 365.25).to_i
  end
and in my view i get the following error:
ArgumentError - invalid date in the following line:
<dd><%= @account.age %></dd>
Thanks in advance.
                        
Try to test in your Rails app console:
This works for me. Check the params that you're setting.