Oops, sorry George, indeed I should have put some more information
about what’s happening and what’s the scene here…
There’s a table in the db called “photos”, with two columns, “id” and
“filename”. “filename” is set for “NULL” as default, but I want to use
“validates_presence_of” as a mean to verify the field entry on the
When I do a “photo=Photo.new”, and a “photo.save”, in the console, it
should return “false”, and generate the error strings for future
analisys, but it’s returning “true” and it creates a new record in my
db with the “filename” field empty.
This was not supposed to happen because of
“validate_presence_of :filename”, which I wrote in the “photo.rb”
Do I need to put more information? Thanks a lot, George!