spree-contrib / spree_wishlist

Wishlist extension for Spree Commerce.

Home Page:http://guides.spreecommerce.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Template error : "undefined local variable or method 'wishlist' "

rlara opened this issue · comments

When I try to share my wishlist, I get the following error:

ActionView::Template::Error (undefined local variable or method `wishlist' for #<#<Class:0xb448b48>:0xc65ba88>)

What I did was change the name of the object "wishlist" to "object" in the user template

 _mail_to_friend.text.erb

*The version of Spree and the version of Rails.
version spree(2.0.8.beta) and spree_wishlist(2.0).

*Your application's complete Gemfile, as text (not as an image)

source 'https://rubygems.org'

 gem 'rails', '~> 3.2.13' 
# Bundle edge Rails instead:
 #gem 'rails', :git => 'git://github.com/rails/rails.git'

 gem 'pg'

# Gems used only for assets and not required
# in production environments by default.
group :assets do
 gem 'sass-rails',   '~> 3.2.3'
 gem 'coffee-rails', '~> 3.2.1'

# See https://github.com/sstephenson/execjs#readme for more supported runtimes
#gem 'therubyracer', :platforms => :ruby

 gem 'uglifier', '>= 1.0.3'
end

gem 'jquery-rails'
# To use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.0.0'

# To use Jbuilder templates for JSON
# gem 'jbuilder'

# Use unicorn as the app server
# gem 'unicorn'

# Deploy with Capistrano
# gem 'capistrano'

#To use debugger
#gem 'debugger'

gem 'spree', github: 'spree/spree', branch: '2-0-stable'
gem 'spree_auth_devise', github: 'spree/spree_auth_devise', branch: '2-0-stable'
gem 'spree_wishlist', :git => 'git://github.com/spree/spree_wishlist.git', branch: '2-0-stable'
gem 'spree_email_to_friend', :git => 'git://github.com/spree/spree_email_to_friend.git' , branch: '2-0-stable'

Hi @rlara, what were the exact steps used to cause this issue to happen?

I close this ticket as it has no responses since the last 2 months

Big bug, without solution.