Displaying 1 result from an estimated 1 matches for "find_by_title_and_year".
2005 Feb 12
3
ActiveRecord not updating record
...n a
sqlite database. This isn''t exactly as rails question, since I''m
doing this initial import outside of rails, but I''m hoping someone
hear might have an idea as to what my problem is.
The basic problem is with the following code (which is run in a big loop)
m = Movie.find_by_title_and_year title, year
if m
#puts "#{title} $#{budget}"
puts m.update_attribute("budget", budget)
end
it prints true, indicating that the record has been saved succesfully
- but when I look in the database (select * from movies where budget
<> "";) no records have been...