That's an easy one, really. You got a typo.

******************************************
class Product < ActiveRecord::Base

 validates_presence_of :title, :description, :image_url,
 validates_numericality_of :price
******************************************

remove the last comma from the line above the validation of the numericality
of :price

Cheers,
Chris

--

You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.


Reply via email to