# Re: validates\_presence\_of generates syntax error

**URL:** <https://www.ruby-forum.com/t/re-validates-presence-of-generates-syntax-error/83729>\
**Category:** Ruby\
**Created:** [January 29, 2007, 8:15am UTC](https://www.ruby-forum.com/t/re-validates-presence-of-generates-syntax-error/83729 "2007-01-29T08:15:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![threeeyedfish](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/a587f6/32.png) [@threeeyedfish](https://www.ruby-forum.com/u/threeeyedfish)\
**Post date:** [January 29, 2007, 8:15am UTC](https://www.ruby-forum.com/t/re-validates-presence-of-generates-syntax-error/83729/1 "2007-01-29T08:15:56Z")

</div>

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