Broken validates_* functions

Hi,

I’m trying to work my way through the agile book and I’m at the example
where I bring in form validation using the validates_presence_of methods
and
so on.

The problem I am having is, my application completely ignores these
functions. Even though the methods are there, they don’t catch any empty
fields.

This is what I have, created with scaffold:

class Product < ActiveRecord::Base
validates_presence_of :title
end

Any help appreciated,

James

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs