Validates_presence_of generates syntax error

hi all



First of all, make sure you are aware of the existence of Ruby on Rails mailing list that is more specialised and dedicated to answering questions concerning Rails Framework and not Ruby in general. You can find it at Google Groups:

Using Rails 1.2.1 I tried to create your model and add exactly the same syntax

class Product < ActiveRecord::Base
  validates_presence_of :title, :description, :image_url

and I've got no errors at all.

Maybe there's a problem in your Ruby or Rails installation or some weird non-printed characters in the file???

Your sincerely,
Damian/Three-eyed Fish


On Jan 28, 2007, at 15:35, libsfan01 wrote: