I have this method, which, after the rake task has to save my data in the model, I try to update 2 columns at a time, which should not be a problem
def update_fixtures
In this case, only the guest team will save, however, if I do this
def update_fixtures
Then only the home team will save.
I tried @ model.errors.full_messages, but got an undefined method for the nil class, so aren't there any?
I am trying to debug this problem, but I donโt know what I can use to find the problem.
Has anyone experienced this before? Driving me crazy
EDIT
I can update the field manually from the console, so when I do
Fixture.create(:away_team => "String")
he updates thin
thank
methods debugging activerecord ruby-on-rails-3 rake-task
Richlewis Mar 13 '13 at 13:17 2013-03-13 13:17
source share