Broken validates_* functions


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
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

This is what I have, created with scaffold:

class Product < ActiveRecord::Base
validates_presence_of :title

Any help appreciated,


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