Forum: Ruby Re: validates_presence_of generates syntax error

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Threeeyedfish (Guest)
on 2007-01-29 09:15
(Received via mailing list)
On Jan 28, 2007, at 15:35, libsfan01 wrote:

> hi all

Hi!

> PLEASE HELP!!

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 G.:
http://groups.google.com/group/rubyonrails-talk?hl=en

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
end

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
This topic is locked and can not be replied to.