Displaying 1 result from an estimated 1 matches for "add_to_wishlist".
2005 Oct 27
0
has_one with Single Table Inheritance - NameError : uninitialized constant
...:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.12.1/lib/active_record/associations.rb:637:in
`wishlist''
g:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.12.1/lib/active_record/associations.rb:633:in
`wishlist''
./script/../config/../app/models/user.rb:57
line 57 from user.rb is :
def add_to_wishlist(album)
* if self.wishlist.nil?*
wishlist = Wishlist.new(''title''=>''Default Wish List'')
wishlist.user = self
self.wishlist = wishlist
end
self.wishlist.items<<album
self.wishlist.save
end
What''s strange is this works perfectly in my Wishlist uni...