undefined method `title'
Tim Wolak
1 post
|
I am working on the depot store and on page 85 after you enter in the code for checking the title uniqueness my code fails with udefined method ‘title’. Has anyone seen this before? Tim class Product < ActiveRecord::Base
validates_presence_of :title, :description, :image_url
validates_numericality_of :price
validates_uniqueness_of :title
validates_format_of :image_url,
:with => %r{\.(gif|jpg|png)$}i,
:message => “must be a URL for a GIF, JPG or PNG image” |
David Kiely
2 posts
|
I was seeing undefined method `title’ when I accessed the page products/new so I would check my tables and check the spelling again. |
2 posts, 2 voices
