spree / spree_auth_devise Goto Github PK
View Code? Open in Web Editor NEWProvides authentication (user accounts, login & signup) for @spree by using Devise
Home Page: https://spreecommerce.org
License: BSD 3-Clause "New" or "Revised" License
Provides authentication (user accounts, login & signup) for @spree by using Devise
Home Page: https://spreecommerce.org
License: BSD 3-Clause "New" or "Revised" License
Hi,
I am getting a "undefined local variable or method `from_address' for #Spree::UserMailer" error when I try to send password resets from spree_auth_devise in my Spree application.
I have the following gems defined in my Gemfile:
gem 'deface', github: 'spree/deface'
gem 'spree', :github => 'spree/spree', :branch => '1-3-stable'
gem 'spree_gateway', :github => 'spree/spree_gateway', :branch => '1-3-stable'
gem 'spree_auth_devise', :github => 'spree/spree_auth_devise', :branch => '1-3-stable'
Looking at the implementation in Spree:UserMailer, it would seem that the Spree::BaseMailer isn't available to the UserMailer when the UserMailer is loaded, but I'm too new to this code base to know where to start looking to fix it.
Any suggestions for fixing it?
Thanks,
Neill
Using spree 2.0.0 and spree_auth_devise 2.0.0
spree is mounted at /store
Tried to log out of the admin dashboard and got this error.
Navigating to store/logout successfully logs out the admin user
Hello,
Here is a problem I just had on a fresh Spree 1.2 install.
Got
Duplicate column name 'reset_password_sent_at': ALTER TABLE `spree_users` ADD `reset_password_sent_at`
Fixed by
rake db:drop
rake db:create
../spree install project
Here it works fine.
The templates should use the new money helper.
When I try running the tests on master, I get a bunch of failures. I don't have the time to dive in and fix them right now, but we should work towards making these pass again.
Failures:
1) Spree::CheckoutController#edit when registration step enabled when authenticated as registered user should proceed to the first checkout step
Failure/Error: spree_get :edit, { :state => 'address' }
Double "Spree::User_1007" received unexpected message :ship_address with (no args)
# ./spec/controllers/spree/checkout_controller_spec.rb:24:in `block (5 levels) in <top (required)>'
2) Spree::CheckoutController#edit when registration step disabled when authenticated as registered should proceed to the first checkout step
Failure/Error: spree_get :edit, { :state => 'address' }
Double "Spree::User_1008" received unexpected message :ship_address with (no args)
# ./spec/controllers/spree/checkout_controller_spec.rb:47:in `block (5 levels) in <top (required)>'
3) Spree::CheckoutController#update_registration should render the registration view if unable to save
Failure/Error: flash[:registration_error].should == I18n.t(:email_is_invalid, :scope => [:errors, :messages])
expected: "Email address cannot be blank"
got: nil (using ==)
# ./spec/controllers/spree/checkout_controller_spec.rb:126:in `block (3 levels) in <top (required)>'
4) Accounts editing should be able to edit a new user
Failure/Error: click_link "My Account"
Capybara::ElementNotFound:
Unable to find link "My Account"
# ./spec/features/account_spec.rb:24:in `block (3 levels) in <top (required)>'
5) Accounts editing should be able to edit an existing user account
Failure/Error: user = create(:user, :email => "[email protected]", :password => "secret", :password_confirmation => "secret")
ActiveRecord::RecordInvalid:
Validation failed: Email has already been taken
# ./spec/features/account_spec.rb:36:in `block (3 levels) in <top (required)>'
6) Checkout without payment being required should allow a visitor to checkout as guest, without registration
Failure/Error: select "#{address.state.name}", :from => "order_#{str_addr}_attributes_state_id"
Capybara::ElementNotFound:
Unable to find select box "order_bill_address_attributes_state_id"
# ./spec/features/checkout_spec.rb:52:in `block (3 levels) in <top (required)>'
7) Checkout without payment being required should associate an uncompleted guest order with user after logging in
Failure/Error: select "#{address.state.name}", :from => "order_#{str_addr}_attributes_state_id"
Capybara::ElementNotFound:
Unable to find select box "order_bill_address_attributes_state_id"
# ./spec/features/checkout_spec.rb:80:in `block (3 levels) in <top (required)>'
8) Checkout without payment being required should associate an incomplete guest order with user after successful password reset
Failure/Error: select "#{address.state.name}", :from => "order_#{str_addr}_attributes_state_id"
Capybara::ElementNotFound:
Unable to find select box "order_bill_address_attributes_state_id"
# ./spec/features/checkout_spec.rb:114:in `block (3 levels) in <top (required)>'
9) Checkout without payment being required should allow a user to register during checkout
Failure/Error: select "#{address.state.name}", :from => "order_#{str_addr}_attributes_state_id"
Capybara::ElementNotFound:
Unable to find select box "order_bill_address_attributes_state_id"
# ./spec/features/checkout_spec.rb:138:in `block (3 levels) in <top (required)>'
10) Orders should allow a user to view their cart at any time
Failure/Error: Unable to find matching line from backtrace
ActionController::RoutingError:
No route matches [GET] "/stylesheets/spree/frontend/all.css"
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.2/lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.2/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.2/lib/rails/rack/logger.rb:38:in `call_app'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.2/lib/rails/rack/logger.rb:20:in `block in call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.0.2/lib/active_support/tagged_logging.rb:67:in `block in tagged'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.0.2/lib/active_support/tagged_logging.rb:25:in `tagged'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.0.2/lib/active_support/tagged_logging.rb:67:in `tagged'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.2/lib/rails/rack/logger.rb:20:in `call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.2/lib/action_dispatch/middleware/request_id.rb:21:in `call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/methodoverride.rb:21:in `call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/runtime.rb:17:in `call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.0.2/lib/active_support/cache/strategy/local_cache.rb:83:in `call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.2/lib/action_dispatch/middleware/static.rb:64:in `call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/sendfile.rb:112:in `call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.2/lib/rails/engine.rb:511:in `call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.2/lib/rails/application.rb:97:in `call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/builder.rb:138:in `call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/urlmap.rb:65:in `block in call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/urlmap.rb:50:in `each'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/urlmap.rb:50:in `call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/capybara-2.2.0/lib/capybara/server.rb:19:in `call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/handler/webrick.rb:60:in `service'
# /Users/magnusvk/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
# /Users/magnusvk/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
# /Users/magnusvk/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
11) Orders should merge incomplete orders from different sessions
Failure/Error: Unable to find matching line from backtrace
ActionController::RoutingError:
No route matches [GET] "/stylesheets/spree/frontend/all.css"
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.2/lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.2/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.2/lib/rails/rack/logger.rb:38:in `call_app'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.2/lib/rails/rack/logger.rb:20:in `block in call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.0.2/lib/active_support/tagged_logging.rb:67:in `block in tagged'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.0.2/lib/active_support/tagged_logging.rb:25:in `tagged'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.0.2/lib/active_support/tagged_logging.rb:67:in `tagged'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.2/lib/rails/rack/logger.rb:20:in `call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.2/lib/action_dispatch/middleware/request_id.rb:21:in `call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/methodoverride.rb:21:in `call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/runtime.rb:17:in `call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.0.2/lib/active_support/cache/strategy/local_cache.rb:83:in `call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.2/lib/action_dispatch/middleware/static.rb:64:in `call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/sendfile.rb:112:in `call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.2/lib/rails/engine.rb:511:in `call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.2/lib/rails/application.rb:97:in `call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/builder.rb:138:in `call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/urlmap.rb:65:in `block in call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/urlmap.rb:50:in `each'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/urlmap.rb:50:in `call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/capybara-2.2.0/lib/capybara/server.rb:19:in `call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/handler/webrick.rb:60:in `service'
# /Users/magnusvk/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
# /Users/magnusvk/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
# /Users/magnusvk/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
12) Reset Password should allow a user to supply an email for the password reset
Failure/Error: page.should have_content("You will receive an email with instructions")
expected to find text "You will receive an email with instructions" in "Login All departments Home Cart: (Empty) 1 error prohibited this record from being saved: There were problems with the following fields: Email not found Forgot Password? Please enter your email on the form below Email Powered by Spree"
# ./spec/features/password_reset_spec.rb:14:in `block (2 levels) in <top (required)>'
13) Reset Password shows errors if no email is supplied
Failure/Error: Unable to find matching line from backtrace
ActionController::RoutingError:
No route matches [GET] "/stylesheets/spree/frontend/all.css"
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.2/lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.2/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.2/lib/rails/rack/logger.rb:38:in `call_app'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.2/lib/rails/rack/logger.rb:20:in `block in call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.0.2/lib/active_support/tagged_logging.rb:67:in `block in tagged'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.0.2/lib/active_support/tagged_logging.rb:25:in `tagged'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.0.2/lib/active_support/tagged_logging.rb:67:in `tagged'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.2/lib/rails/rack/logger.rb:20:in `call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.2/lib/action_dispatch/middleware/request_id.rb:21:in `call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/methodoverride.rb:21:in `call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/runtime.rb:17:in `call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.0.2/lib/active_support/cache/strategy/local_cache.rb:83:in `call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.2/lib/action_dispatch/middleware/static.rb:64:in `call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/sendfile.rb:112:in `call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.2/lib/rails/engine.rb:511:in `call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.2/lib/rails/application.rb:97:in `call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/builder.rb:138:in `call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/urlmap.rb:65:in `block in call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/urlmap.rb:50:in `each'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/urlmap.rb:50:in `call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/capybara-2.2.0/lib/capybara/server.rb:19:in `call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/handler/webrick.rb:60:in `service'
# /Users/magnusvk/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
# /Users/magnusvk/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
# /Users/magnusvk/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
14) promotion adjustments provides a promotion for the first order for a new user doesn't blow up the signup page
Failure/Error: select2 "User signup", :from => "Event"
RuntimeError:
Could not find label by text Event
# ./spec/features/promotion_adjustment_spec.rb:40:in `block (3 levels) in <top (required)>'
15) promotion adjustments provides a promotion for the first order for a new user with an order correctly applies the adjustment if a user signs up as a real user
Failure/Error: select2 "User signup", :from => "Event"
RuntimeError:
Could not find label by text Event
# ./spec/features/promotion_adjustment_spec.rb:40:in `block (3 levels) in <top (required)>'
16) promotion adjustments provides a promotion for the first order for a new user without an order signing up, then placing an order
Failure/Error: select2 "User signup", :from => "Event"
RuntimeError:
Could not find label by text Event
# ./spec/features/promotion_adjustment_spec.rb:40:in `block (3 levels) in <top (required)>'
17) Sign In should ask use to sign in
Failure/Error: Unable to find matching line from backtrace
ActionController::RoutingError:
No route matches [GET] "/stylesheets/spree/frontend/all.css"
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.2/lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.2/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.2/lib/rails/rack/logger.rb:38:in `call_app'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.2/lib/rails/rack/logger.rb:20:in `block in call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.0.2/lib/active_support/tagged_logging.rb:67:in `block in tagged'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.0.2/lib/active_support/tagged_logging.rb:25:in `tagged'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.0.2/lib/active_support/tagged_logging.rb:67:in `tagged'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.2/lib/rails/rack/logger.rb:20:in `call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.2/lib/action_dispatch/middleware/request_id.rb:21:in `call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/methodoverride.rb:21:in `call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/runtime.rb:17:in `call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.0.2/lib/active_support/cache/strategy/local_cache.rb:83:in `call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.2/lib/action_dispatch/middleware/static.rb:64:in `call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/sendfile.rb:112:in `call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.2/lib/rails/engine.rb:511:in `call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.2/lib/rails/application.rb:97:in `call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/builder.rb:138:in `call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/urlmap.rb:65:in `block in call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/urlmap.rb:50:in `each'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/urlmap.rb:50:in `call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/capybara-2.2.0/lib/capybara/server.rb:19:in `call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/handler/webrick.rb:60:in `service'
# /Users/magnusvk/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
# /Users/magnusvk/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
# /Users/magnusvk/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
18) Sign In should let a user sign in successfully
Failure/Error: page.should have_content("Logged in successfully")
expected to find text "Logged in successfully" in "Login All departments Home Cart: (Empty) Invalid email or password. Login as Existing Customer Email Password Remember me or Create a new account | Forgot Password? Powered by Spree"
# ./spec/features/sign_in_spec.rb:18:in `block (2 levels) in <top (required)>'
19) Sign In should show validation erros
Failure/Error: Unable to find matching line from backtrace
ActionController::RoutingError:
No route matches [GET] "/stylesheets/spree/frontend/all.css"
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.2/lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.2/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.2/lib/rails/rack/logger.rb:38:in `call_app'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.2/lib/rails/rack/logger.rb:20:in `block in call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.0.2/lib/active_support/tagged_logging.rb:67:in `block in tagged'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.0.2/lib/active_support/tagged_logging.rb:25:in `tagged'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.0.2/lib/active_support/tagged_logging.rb:67:in `tagged'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.2/lib/rails/rack/logger.rb:20:in `call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.2/lib/action_dispatch/middleware/request_id.rb:21:in `call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/methodoverride.rb:21:in `call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/runtime.rb:17:in `call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.0.2/lib/active_support/cache/strategy/local_cache.rb:83:in `call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.2/lib/action_dispatch/middleware/static.rb:64:in `call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/sendfile.rb:112:in `call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.2/lib/rails/engine.rb:511:in `call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.2/lib/rails/application.rb:97:in `call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/builder.rb:138:in `call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/urlmap.rb:65:in `block in call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/urlmap.rb:50:in `each'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/urlmap.rb:50:in `call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/capybara-2.2.0/lib/capybara/server.rb:19:in `call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/handler/webrick.rb:60:in `service'
# /Users/magnusvk/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
# /Users/magnusvk/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
# /Users/magnusvk/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
20) Sign In should allow a user to access a restricted page after logging in
Failure/Error: page.should have_content("Logged in as: [email protected]")
expected to find text "Logged in as: [email protected]" in "Login All departments Home Cart: (Empty) Invalid email or password. Login as Existing Customer Email Password Remember me or Create a new account | Forgot Password? Powered by Spree"
# ./spec/features/sign_in_spec.rb:38:in `block (2 levels) in <top (required)>'
21) Sign Out should allow a signed in user to logout
Failure/Error: click_link "Logout"
Capybara::ElementNotFound:
Unable to find link "Logout"
# ./spec/features/sign_out_spec.rb:21:in `block (2 levels) in <top (required)>'
22) Sign Up with valid data should create a new user
Failure/Error: Unable to find matching line from backtrace
ActionController::RoutingError:
No route matches [GET] "/stylesheets/spree/frontend/all.css"
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.2/lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.2/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.2/lib/rails/rack/logger.rb:38:in `call_app'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.2/lib/rails/rack/logger.rb:20:in `block in call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.0.2/lib/active_support/tagged_logging.rb:67:in `block in tagged'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.0.2/lib/active_support/tagged_logging.rb:25:in `tagged'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.0.2/lib/active_support/tagged_logging.rb:67:in `tagged'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.2/lib/rails/rack/logger.rb:20:in `call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.2/lib/action_dispatch/middleware/request_id.rb:21:in `call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/methodoverride.rb:21:in `call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/runtime.rb:17:in `call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.0.2/lib/active_support/cache/strategy/local_cache.rb:83:in `call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.2/lib/action_dispatch/middleware/static.rb:64:in `call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/sendfile.rb:112:in `call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.2/lib/rails/engine.rb:511:in `call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.2/lib/rails/application.rb:97:in `call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/builder.rb:138:in `call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/urlmap.rb:65:in `block in call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/urlmap.rb:50:in `each'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/urlmap.rb:50:in `call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/capybara-2.2.0/lib/capybara/server.rb:19:in `call'
# /Users/magnusvk/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/handler/webrick.rb:60:in `service'
# /Users/magnusvk/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
# /Users/magnusvk/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
# /Users/magnusvk/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
23) Sign Up with invalid data should not create a new user
Failure/Error: Spree::User.count.should == 0
expected: 0
got: 1 (using ==)
# ./spec/features/sign_up_spec.rb:24:in `block (3 levels) in <top (required)>'
24) Users admin editing email with validation error
Failure/Error: click_link "Users"
Capybara::ElementNotFound:
Unable to find link "Users"
# ./spec/features/user_spec.rb:11:in `block (2 levels) in <top (required)>'
25) Users admin editing roles
Failure/Error: click_link "Users"
Capybara::ElementNotFound:
Unable to find link "Users"
# ./spec/features/user_spec.rb:11:in `block (2 levels) in <top (required)>'
26) Spree::Order with bogus email should not be valid
Failure/Error: order.should_not be_valid
expected #<Spree::Order id: nil, number: nil, item_total: #<BigDecimal:7fed729b3bf8,'0.0',9(18)>, total: #<BigDecimal:7fed729b3a90,'0.0',9(18)>, state: "address", adjustment_total: #<BigDecimal:7fed729b3450,'0.0',9(18)>, user_id: nil, completed_at: nil, bill_address_id: nil, ship_address_id: nil, payment_total: #<BigDecimal:7fed729b2848,'0.0',9(18)>, shipping_method_id: nil, shipment_state: nil, payment_state: nil, email: "foo", special_instructions: nil, created_at: nil, updated_at: nil, currency: "USD", last_ip_address: nil, created_by_id: nil, shipment_total: #<BigDecimal:7fed729b10b0,'0.0',9(18)>, additional_tax_total: #<BigDecimal:7fed729b0b38,'0.0',9(18)>, promo_total: #<BigDecimal:7fed729bb510,'0.0',9(18)>, channel: "spree", included_tax_total: #<BigDecimal:7fed729b9530,'0.0',9(18)>> not to be valid
# ./spec/models/order_spec.rb:33:in `block (3 levels) in <top (required)>'
Finished in 1 minute 27.21 seconds
75 examples, 26 failures, 1 pending
Could be a good thing to make sure we have a 1-2-stable branch here as well. Or even do some proper gem release management using SemVer?
spree_auth_devise currently locks us into the 3.0 major release of Devise, even though Devise is now up to 3.2. Again, don't have the time now to fix that and work towards an upgrade, but we do want to do that eventually here at Bonobos. I just wanted to open an issue as to not forget.
It's my understanding from the documentation that to get Spree working with a Devise user class of User, you set this in config/initializers/spree.rb
as Spree.user_class = "User"
.
However, ff68f6c seems to override that setting so that Spree.user_class
is always Spree::User
. Is there a reason for this? What's the preferred method for setting Spree.user_class
?
After updating to latest spree 1.3 stable and latest 1.3 from spree_auth_devise, I am getting in the console
/home/mike/.rvm/gems/ruby-1.9.3-p392@demo/bundler/gems/spree_auth_devise-b1c5f6d1a114/app/controllers/spree/admin/users_controller.rb:91:
warning: else without rescue is useless
On this demo site, there are no other extensions or overrides used. Simply spree mounted with spree_auth_devise
Cheers,
Michael
Here is the error I am getting whenever I start the rails server
/var/lib/gems/1.9.1/bundler/gems/spree_auth_devise-b1c5f6d1a114/app/controllers/spree/admin/users_controller.rb:91: warning: else without rescue is useless
All spree installs uses the same pepper?
https://github.com/spree/spree_auth_devise/blob/master/config/initializers/devise.rb#L43
Better use Rails.configuration.secret_token
I have updated to Spree 1.3.2 and using spree_auth_devise 1.3-stable, initially I got current_user not found, I replaced that with current_spree_user and getting the following error:
undefined method `user_session_path' for #ActionDispatch::Routing::RoutesProxy:0x007fe0d8b25050
Here is my trace :
actionpack (3.2.11) lib/action_dispatch/routing/routes_proxy.rb:34:in `method_missing'
/Users/vndhatri/.rvm/gems/ruby-1.9.3-p286/bundler/gems/spree_book_sellers-60be812a2600/app/views/spree/shared/_login.html.erb:5:in `_2988586ec50c67f4e12d3eb23771ce75'
actionpack (3.2.11) lib/action_view/template.rb:145:in `block in render'
activesupport (3.2.11) lib/active_support/notifications.rb:125:in `instrument'
actionpack (3.2.11) lib/action_view/template.rb:143:in `render'
deface (0.9.1) lib/deface/action_view_extensions.rb:37:in `render'
actionpack (3.2.11) lib/action_view/renderer/partial_renderer.rb:265:in `render_partial'
actionpack (3.2.11) lib/action_view/renderer/partial_renderer.rb:238:in `block in render'
actionpack (3.2.11) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument'
activesupport (3.2.11) lib/active_support/notifications.rb:123:in `block in instrument'
activesupport (3.2.11) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (3.2.11) lib/active_support/notifications.rb:123:in `instrument'
actionpack (3.2.11) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument'
actionpack (3.2.11) lib/action_view/renderer/partial_renderer.rb:237:in `render'
actionpack (3.2.11) lib/action_view/renderer/renderer.rb:41:in `render_partial'
actionpack (3.2.11) lib/action_view/renderer/renderer.rb:15:in `render'
actionpack (3.2.11) lib/action_view/helpers/rendering_helper.rb:24:in `render'
/Users/vndhatri/.rvm/gems/ruby-1.9.3-p286/bundler/gems/spree_book_sellers-60be812a2600/app/views/spree/user_sessions/new.html.erb:9:in `_f3be22ef6f6ef010647f7662880b99a5'
actionpack (3.2.11) lib/action_view/template.rb:145:in `block in render'
activesupport (3.2.11) lib/active_support/notifications.rb:125:in `instrument'
actionpack (3.2.11) lib/action_view/template.rb:143:in `render'
deface (0.9.1) lib/deface/action_view_extensions.rb:37:in `render'
actionpack (3.2.11) lib/action_view/renderer/template_renderer.rb:47:in `block (2 levels) in render_template'
actionpack (3.2.11) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument'
activesupport (3.2.11) lib/active_support/notifications.rb:123:in `block in instrument'
activesupport (3.2.11) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (3.2.11) lib/active_support/notifications.rb:123:in `instrument'
actionpack (3.2.11) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument'
actionpack (3.2.11) lib/action_view/renderer/template_renderer.rb:46:in `block in render_template'
actionpack (3.2.11) lib/action_view/renderer/template_renderer.rb:54:in `render_with_layout'
actionpack (3.2.11) lib/action_view/renderer/template_renderer.rb:45:in `render_template'
actionpack (3.2.11) lib/action_view/renderer/template_renderer.rb:18:in `render'
actionpack (3.2.11) lib/action_view/renderer/renderer.rb:36:in `render_template'
actionpack (3.2.11) lib/action_view/renderer/renderer.rb:17:in `render'
actionpack (3.2.11) lib/abstract_controller/rendering.rb:110:in `_render_template'
actionpack (3.2.11) lib/action_controller/metal/streaming.rb:225:in `_render_template'
actionpack (3.2.11) lib/abstract_controller/rendering.rb:103:in `render_to_body'
actionpack (3.2.11) lib/action_controller/metal/renderers.rb:28:in `render_to_body'
actionpack (3.2.11) lib/action_controller/metal/compatibility.rb:50:in `render_to_body'
actionpack (3.2.11) lib/abstract_controller/rendering.rb:88:in `render'
actionpack (3.2.11) lib/action_controller/metal/rendering.rb:16:in `render'
actionpack (3.2.11) lib/action_controller/metal/instrumentation.rb:40:in `block (2 levels) in render'
activesupport (3.2.11) lib/active_support/core_ext/benchmark.rb:5:in `block in ms'
/Users/vndhatri/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'
activesupport (3.2.11) lib/active_support/core_ext/benchmark.rb:5:in `ms'
actionpack (3.2.11) lib/action_controller/metal/instrumentation.rb:40:in `block in render'
actionpack (3.2.11) lib/action_controller/metal/instrumentation.rb:83:in `cleanup_view_runtime'
activerecord (3.2.11) lib/active_record/railties/controller_runtime.rb:24:in `cleanup_view_runtime'
actionpack (3.2.11) lib/action_controller/metal/instrumentation.rb:39:in `render'
actionpack (3.2.11) lib/action_controller/metal/implicit_render.rb:10:in `default_render'
actionpack (3.2.11) lib/action_controller/metal/responder.rb:232:in `default_render'
actionpack (3.2.11) lib/action_controller/metal/responder.rb:160:in `to_html'
spree_core (1.3.1) lib/spree/core/responder.rb:19:in `to_html'
actionpack (3.2.11) lib/action_controller/metal/responder.rb:153:in `respond'
actionpack (3.2.11) lib/action_controller/metal/responder.rb:146:in `call'
spree_core (1.3.1) lib/spree/core/controller_helpers/respond_with.rb:20:in `respond_with'
devise (2.2.4) app/controllers/devise/sessions_controller.rb:10:in `new'
actionpack (3.2.11) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
actionpack (3.2.11) lib/abstract_controller/base.rb:167:in `process_action'
actionpack (3.2.11) lib/action_controller/metal/rendering.rb:10:in `process_action'
actionpack (3.2.11) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
activesupport (3.2.11) lib/active_support/callbacks.rb:491:in `_run__374137768442657336__process_action__3887133290353674221__callbacks'
activesupport (3.2.11) lib/active_support/callbacks.rb:405:in `__run_callback'
activesupport (3.2.11) lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
activesupport (3.2.11) lib/active_support/callbacks.rb:81:in `run_callbacks'
actionpack (3.2.11) lib/abstract_controller/callbacks.rb:17:in `process_action'
actionpack (3.2.11) lib/action_controller/metal/rescue.rb:29:in `process_action'
actionpack (3.2.11) lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
activesupport (3.2.11) lib/active_support/notifications.rb:123:in `block in instrument'
activesupport (3.2.11) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (3.2.11) lib/active_support/notifications.rb:123:in `instrument'
actionpack (3.2.11) lib/action_controller/metal/instrumentation.rb:29:in `process_action'
actionpack (3.2.11) lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
activerecord (3.2.11) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
actionpack (3.2.11) lib/abstract_controller/base.rb:121:in `process'
actionpack (3.2.11) lib/abstract_controller/rendering.rb:45:in `process'
actionpack (3.2.11) lib/action_controller/metal.rb:203:in `dispatch'
actionpack (3.2.11) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
actionpack (3.2.11) lib/action_controller/metal.rb:246:in `block in action'
actionpack (3.2.11) lib/action_dispatch/routing/route_set.rb:73:in `call'
actionpack (3.2.11) lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
actionpack (3.2.11) lib/action_dispatch/routing/route_set.rb:36:in `call'
actionpack (3.2.11) lib/action_dispatch/routing/mapper.rb:42:in `call'
journey (1.0.4) lib/journey/router.rb:68:in `block in call'
journey (1.0.4) lib/journey/router.rb:56:in `each'
journey (1.0.4) lib/journey/router.rb:56:in `call'
actionpack (3.2.11) lib/action_dispatch/routing/route_set.rb:601:in `call'
spree_core (1.3.1) lib/spree/core/middleware/redirect_legacy_product_url.rb:13:in `call'
spree_core (1.3.1) lib/spree/core/middleware/seo_assist.rb:27:in `call'
railties (3.2.11) lib/rails/engine.rb:479:in `call'
railties (3.2.11) lib/rails/railtie/configurable.rb:30:in `method_missing'
journey (1.0.4) lib/journey/router.rb:68:in `block in call'
journey (1.0.4) lib/journey/router.rb:56:in `each'
journey (1.0.4) lib/journey/router.rb:56:in `call'
actionpack (3.2.11) lib/action_dispatch/routing/route_set.rb:601:in `call'
warden (1.2.1) lib/warden/manager.rb:35:in `block in call'
warden (1.2.1) lib/warden/manager.rb:34:in `catch'
warden (1.2.1) lib/warden/manager.rb:34:in `call'
actionpack (3.2.11) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
rack (1.4.5) lib/rack/etag.rb:23:in `call'
rack (1.4.5) lib/rack/conditionalget.rb:25:in `call'
actionpack (3.2.11) lib/action_dispatch/middleware/head.rb:14:in `call'
actionpack (3.2.11) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
actionpack (3.2.11) lib/action_dispatch/middleware/flash.rb:242:in `call'
rack (1.4.5) lib/rack/session/abstract/id.rb:210:in `context'
rack (1.4.5) lib/rack/session/abstract/id.rb:205:in `call'
actionpack (3.2.11) lib/action_dispatch/middleware/cookies.rb:341:in `call'
activerecord (3.2.11) lib/active_record/query_cache.rb:64:in `call'
activerecord (3.2.11) lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call'
actionpack (3.2.11) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
activesupport (3.2.11) lib/active_support/callbacks.rb:405:in `_run__4275144464952089415__call__3649708739460502326__callbacks'
activesupport (3.2.11) lib/active_support/callbacks.rb:405:in `__run_callback'
activesupport (3.2.11) lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
activesupport (3.2.11) lib/active_support/callbacks.rb:81:in `run_callbacks'
actionpack (3.2.11) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
actionpack (3.2.11) lib/action_dispatch/middleware/reloader.rb:65:in `call'
actionpack (3.2.11) lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
actionpack (3.2.11) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
actionpack (3.2.11) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
railties (3.2.11) lib/rails/rack/logger.rb:32:in `call_app'
railties (3.2.11) lib/rails/rack/logger.rb:16:in `block in call'
activesupport (3.2.11) lib/active_support/tagged_logging.rb:22:in `tagged'
railties (3.2.11) lib/rails/rack/logger.rb:16:in `call'
actionpack (3.2.11) lib/action_dispatch/middleware/request_id.rb:22:in `call'
rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
rack (1.4.5) lib/rack/runtime.rb:17:in `call'
activesupport (3.2.11) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
rack (1.4.5) lib/rack/lock.rb:15:in `call'
actionpack (3.2.11) lib/action_dispatch/middleware/static.rb:62:in `call'
railties (3.2.11) lib/rails/engine.rb:479:in `call'
railties (3.2.11) lib/rails/application.rb:223:in `call'
rack (1.4.5) lib/rack/content_length.rb:14:in `call'
railties (3.2.11) lib/rails/rack/log_tailer.rb:17:in `call'
rack (1.4.5) lib/rack/handler/webrick.rb:59:in `service'
/
I'm having problems with the recent commit by @LBRapid when adding a new Admin User through the Admin section.
The parent class ResourceController
causes build_resource
to be run before each action, which triggers mass a assignment error.
I also wonder why you still inherit from ResourceController, it doesn't seem to be used anywhere. Not sure what the best way to fix it is, but I guess either stop subclassing ResourceController, and subclass Spree::Admin::BaseController instead. Or keep things as is and use a skip_before_filter :build_resource
Steps to reproduce:
I would like to make a Dutch translation for spree_auth_devise.
Should I translate it and make a pull request for the Dutch translation or can I open-source this in another way?
What do you prefer?
Bundler could not find compatible versions for gem "devise":
In Gemfile:
spree_auth_devise (>= 0) ruby depends on
devise (~> 2.2.3) ruby
spree_auth_devise (>= 0) ruby depends on
devise (3.0.0.rc)
Trying to make all the specs run again on the spree_auth_devise extension, I have some issues however with the way the spree_roles association is added.
In spree/core there is an initializer called user_class_extensions.rb[1]
While running the specs in spree_auth_devise this initializer is never loaded.. there are some more issues with the Factories and with the dummy application generator.. but first things first :)
How is one supposed to write a custom authentication extension and add proper specs? Can't really figure it out..
Maybe it's just the wine and am I missing something obvious.. :)
[1] https://github.com/spree/spree/blob/master/core/config/initializers/user_class_extensions.rb
Hi,
with the following commit you deleted the anonymous functions from the User model.
8156808
But in spree, the user_logged_in.rb file needs one of this methods (Branch 2-1-stable, every 2.1.X Tag).
This is not necessary for the master branch (spree+spree_auth_devise) but for every 2-1-stable or tag release.
gem 'spree', :git => 'git://github.com/spree/spree.git' , :branch =>'1-3-stable'
gem 'spree_auth_devise', :git => 'git://github.com/spree/spree_auth_devise', :branch =>'1-3-stable'
gem 'spree_paypal_express', :git => 'https://github.com/bolom/spree_paypal_express.git' , :branch => 'master'
gem 'spree_i18n', :git => 'https://github.com/bolom/spree_i18n.git'
gem 'spree_static_content', :git => 'git://github.com/spree/spree_static_content.git'
When I try to delete newly created non-admin user this error happens in js console and the index page is not refreshed. However when I refresh it manually, the user, I have casted deleted upon, disappears.
GET http://0.0.0.0:3000/admin/users 500 (Internal Server Error) jquery.js:8527
send jquery.js:8527
jQuery.extend.ajax jquery.js:7979
(anonymous function) admin.js:176
jQuery.event.dispatch jquery.js:3075
elemData.handle
Hi, i have a little problem
When i try using the branch 'master' i get this error
uninitialized constant Spree::Core::ControllerHelpers::Order /Users/omarsve/.rvm/gems/ruby-1.9.3-p194/bundler/gems/spree_auth_devise-53b5d2e934a7/app/helpers/spree/current_order_decorator.rb:1:in
<top (required)>'
/Users/omarsve/.rvm/gems/ruby-1.9.3-p194/bundler/gems/spree_auth_devise-53b5d2e934a7/lib/spree/auth/engine.rb:13:in block in activate' /Users/omarsve/.rvm/gems/ruby-1.9.3-p194/bundler/gems/spree_auth_devise-53b5d2e934a7/lib/spree/auth/engine.rb:12:in
glob'
/Users/omarsve/.rvm/gems/ruby-1.9.3-p194/bundler/gems/spree_auth_devise-53b5d2e934a7/lib/spree/auth/engine.rb:12:in activate' /Users/omarsve/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:495:in
_run__2503917921596617891__prepare__403513826735000885__callbacks'
/Users/omarsve/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:405:in __run_callback' /Users/omarsve/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:385:in
_run_prepare_callbacks'
/Users/omarsve/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:81:in run_callbacks' /Users/omarsve/.rvm/gems/ruby-1.9.3-p194/gems/actionpack-3.2.8/lib/action_dispatch/middleware/reloader.rb:74:in
prepare!'
/Users/omarsve/.rvm/gems/ruby-1.9.3-p194/gems/actionpack-3.2.8/lib/action_dispatch/middleware/reloader.rb:48:in prepare!' /Users/omarsve/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/application/finisher.rb:47:in
block in module:Finisher'
/Users/omarsve/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/initializable.rb:30:in instance_exec' /Users/omarsve/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/initializable.rb:30:in
run'
/Users/omarsve/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/initializable.rb:55:in block in run_initializers' /Users/omarsve/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/initializable.rb:54:in
each'
/Users/omarsve/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/initializable.rb:54:in run_initializers' /Users/omarsve/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/application.rb:136:in
nitialize!'
/Users/omarsve/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/railtie/configurable.rb:30:in method_missing' /Users/omarsve/projects/shopping-spree/store/config/environment.rb:5:in
<top (required)>'
/Users/omarsve/.rvm/gems/ruby-1.9.3-p194/gems/polyglot-0.3.3/lib/polyglot.rb:63:in ()require' /Users/omarsve/.rvm/gems/ruby-1.9.3-p194/gems/polyglot-0.3.3/lib/polyglot.rb:63:in (
)require'
/Users/omarsve/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/application.rb:103:in require_environment!' /Users/omarsve/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/application.rb:295:in
block (2 levels) in initialize_tasks'
Tasks: TOP => db:migrate => environment
(See full trace by running task with --trace)`
Your documentation said that this could be fixed using the branch '1-2-stable' but when i use that branch i get this error trying to run the bundle install
In snapshot (Gemfile.lock):
devise (2.1.2)
In Gemfile:
spree_auth_devise (>= 0) ruby depends on
devise (~> 2.0.4) ruby
Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.```
Your documentation also says that this could be fixed using the 'edge' branch but when i use this branch i get this error trying to run the bundle install
```Bundler could not find compatible versions for gem "cancan":
In snapshot (Gemfile.lock):
cancan (1.6.7)
In Gemfile:
spree_auth_devise (>= 0) ruby depends on
cancan (= 1.6.8) ruby
Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.```
So wich branch should i use or how can i fix this error?
When I include spree_auth_devise using branch 2-1-stable and after that call
rails g spree:install --sample=false --seed=false'
I'm getting this error
No such file to load -- spree/checkout_controller (LoadError)
I'm using ruby 2.0.0, rails 4.0.2
Unable to use this:
bundle update --source spree
Updating https://github.com/spree/spree.git
Fetching gem metadata from https://rubygems.org/.......
Fetching gem metadata from https://rubygems.org/..
Resolving dependencies...
Bundler could not find compatible versions for gem "spree_core":
In Gemfile:
spree (>= 0) ruby depends on
spree_core (= 2.1.3.beta) ruby
spree_auth_devise (>= 0) ruby depends on
spree_core (2.1.2.beta)
Advice?
This is a simple thing, but I feel the orders on the user show page should really be sorted in descending order by the completed_at date. I didn't see a scope on the Order model in core, so please add:
@orders = @user.orders.complete.order('completed_at desc')
to here:
https://github.com/spree/spree_auth_devise/blob/master/app/controllers/spree/users_controller.rb#L10
Bundler could not find compatible versions for gem "spree_frontend":
In Gemfile:
spree (>= 0) ruby depends on
spree_frontend (= 2.0.0) ruby
spree_auth_devise (>= 0) ruby depends on
spree_frontend (2.0.0.rc1)
In spree_auth_devise gemspec is pointed to 2.0.0.beta that is why this issue is coming ....
I have a problem getting the master versions of spree and spree_auth_devise to work together. When being redirected to the registration page, i get stuck in a redirect loop.
I could not reproduce the issue when running the checkout feature spec, which run fine, but when running the app in development.
Here's a plain simple example app (running Rails 4.0.2) to reproduce the error: https://github.com/ahx/spree_auth_devise_redirect_issue
You can find more details about all gem versions there.
I am seeing this error in Firefox 26 and Chrome 31.
Here are some parts of the log that illustrate the issue:
Redirected to http://localhost:3000/checkout/registration
Filter chain halted as :check_registration rendered or redirected
Completed 302 Found in 23ms (ActiveRecord: 1.7ms)
[โฆ]
Started GET "/checkout/registration" for 127.0.0.1 at 2014-01-03 22:25:06 +0100
Processing by Spree::CheckoutController#edit as HTML
[โฆ]
Redirected to http://localhost:3000/checkout/address
Filter chain halted as :ensure_valid_state rendered or redirected
Completed 302 Found in 14ms (ActiveRecord: 1.2ms)
[โฆ]
Started GET "/checkout/address" for 127.0.0.1 at 2014-01-03 22:25:06 +0100
Processing by Spree::CheckoutController#edit as HTML
Parameters: {"state"=>"address"}
[โฆ]
Spree::TokenizedPermission Load (0.2ms) SELECT "spree_tokenized_permissions".* FROM "spree_tokenized_permissions" WHERE "spree_tokenized_permissions"."permissable_id" = ? AND "spree_tokenized_permissions"."permissable_type" = ? ORDER BY "spree_tokenized_permissions"."id" ASC LIMIT 1 [["permissable_id", 6], ["permissable_type", "Spree::Order"]]
Redirected to http://localhost:3000/checkout/registration
Filter chain halted as :check_registration rendered or redirected
Completed 302 Found in 106ms (ActiveRecord: 2.2ms)
Started GET "/checkout/registration" for 127.0.0.1 at 2014-01-03 22:25:06 +0100
Processing by Spree::CheckoutController#edit as HTML
Parameters: {"state"=>"registration"}
Hi all! I've installed the full Spree gem to my project; Upon logging in with the default administrator and going to the /admin page, I receive this error [see full trace at bottom]:
Errno::ETIMEDOUT in Spree::Admin::AnalyticsController#register
A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. - connect(2)
I thought it might be something that I had configured on my existing application and so I made a new one as follows
rails new new
cd new
spree install -A
rails g spree:install --sample=false --seed=false
Upon running the rails server, I get the same message. I'm not entirely sure what I'm doing wrong. It may be worth noting that I am on a work computer behind a proxy (I've configured the git http proxy accordingly). I've also installed this to my existing project on my home computer which seems to work just fine.
Here is the full trace:
c:/RubyOnRails/Ruby1.9.3/lib/ruby/1.9.1/net/http.rb:762:in `initialize'
c:/RubyOnRails/Ruby1.9.3/lib/ruby/1.9.1/net/http.rb:762:in `open'
c:/RubyOnRails/Ruby1.9.3/lib/ruby/1.9.1/net/http.rb:762:in `block in connect'
c:/RubyOnRails/Ruby1.9.3/lib/ruby/1.9.1/timeout.rb:54:in `timeout'
c:/RubyOnRails/Ruby1.9.3/lib/ruby/1.9.1/timeout.rb:99:in `timeout'
c:/RubyOnRails/Ruby1.9.3/lib/ruby/1.9.1/net/http.rb:762:in `connect'
c:/RubyOnRails/Ruby1.9.3/lib/ruby/1.9.1/net/http.rb:755:in `do_start'
c:/RubyOnRails/Ruby1.9.3/lib/ruby/1.9.1/net/http.rb:744:in `start'
c:/RubyOnRails/Ruby1.9.3/lib/ruby/1.9.1/net/http.rb:1284:in `request'
httparty (0.8.3) lib/httparty/request.rb:76:in `perform'
httparty (0.8.3) lib/httparty.rb:400:in `perform_request'
httparty (0.8.3) lib/httparty.rb:363:in `post'
spree_dash (1.3.2) lib/spree/dash/jirafe.rb:34:in `register_application'
spree_dash (1.3.2) lib/spree/dash/jirafe.rb:13:in `register'
spree_dash (1.3.2) app/controllers/spree/admin/analytics_controller.rb:8:in `register'
actionpack (3.2.13) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
actionpack (3.2.13) lib/abstract_controller/base.rb:167:in `process_action'
actionpack (3.2.13) lib/action_controller/metal/rendering.rb:10:in `process_action'
actionpack (3.2.13) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
activesupport (3.2.13) lib/active_support/callbacks.rb:469:in `_run__616149492__process_action__1003345915__callbacks'
activesupport (3.2.13) lib/active_support/callbacks.rb:405:in `__run_callback'
activesupport (3.2.13) lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
activesupport (3.2.13) lib/active_support/callbacks.rb:81:in `run_callbacks'
actionpack (3.2.13) lib/abstract_controller/callbacks.rb:17:in `process_action'
actionpack (3.2.13) lib/action_controller/metal/rescue.rb:29:in `process_action'
actionpack (3.2.13) lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
activesupport (3.2.13) lib/active_support/notifications.rb:123:in `block in instrument'
activesupport (3.2.13) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (3.2.13) lib/active_support/notifications.rb:123:in `instrument'
actionpack (3.2.13) lib/action_controller/metal/instrumentation.rb:29:in `process_action'
actionpack (3.2.13) lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
activerecord (3.2.13) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
actionpack (3.2.13) lib/abstract_controller/base.rb:121:in `process'
actionpack (3.2.13) lib/abstract_controller/rendering.rb:45:in `process'
actionpack (3.2.13) lib/action_controller/metal.rb:203:in `dispatch'
actionpack (3.2.13) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
actionpack (3.2.13) lib/action_controller/metal.rb:246:in `block in action'
actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:73:in `call'
actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:36:in `call'
journey (1.0.4) lib/journey/router.rb:68:in `block in call'
journey (1.0.4) lib/journey/router.rb:56:in `each'
journey (1.0.4) lib/journey/router.rb:56:in `call'
actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:612:in `call'
spree_core (1.3.2) lib/spree/core/middleware/redirect_legacy_product_url.rb:13:in `call'
spree_core (1.3.2) lib/spree/core/middleware/seo_assist.rb:27:in `call'
railties (3.2.13) lib/rails/engine.rb:479:in `call'
railties (3.2.13) lib/rails/railtie/configurable.rb:30:in `method_missing'
journey (1.0.4) lib/journey/router.rb:68:in `block in call'
journey (1.0.4) lib/journey/router.rb:56:in `each'
journey (1.0.4) lib/journey/router.rb:56:in `call'
actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:612:in `call'
warden (1.2.1) lib/warden/manager.rb:35:in `block in call'
warden (1.2.1) lib/warden/manager.rb:34:in `catch'
warden (1.2.1) lib/warden/manager.rb:34:in `call'
actionpack (3.2.13) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
rack (1.4.5) lib/rack/etag.rb:23:in `call'
rack (1.4.5) lib/rack/conditionalget.rb:25:in `call'
actionpack (3.2.13) lib/action_dispatch/middleware/head.rb:14:in `call'
actionpack (3.2.13) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
actionpack (3.2.13) lib/action_dispatch/middleware/flash.rb:242:in `call'
rack (1.4.5) lib/rack/session/abstract/id.rb:210:in `context'
rack (1.4.5) lib/rack/session/abstract/id.rb:205:in `call'
actionpack (3.2.13) lib/action_dispatch/middleware/cookies.rb:341:in `call'
activerecord (3.2.13) lib/active_record/query_cache.rb:64:in `call'
activerecord (3.2.13) lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call'
actionpack (3.2.13) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
activesupport (3.2.13) lib/active_support/callbacks.rb:405:in `_run__756801158__call__935563923__callbacks'
activesupport (3.2.13) lib/active_support/callbacks.rb:405:in `__run_callback'
activesupport (3.2.13) lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
activesupport (3.2.13) lib/active_support/callbacks.rb:81:in `run_callbacks'
actionpack (3.2.13) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
actionpack (3.2.13) lib/action_dispatch/middleware/reloader.rb:65:in `call'
actionpack (3.2.13) lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
railties (3.2.13) lib/rails/rack/logger.rb:32:in `call_app'
railties (3.2.13) lib/rails/rack/logger.rb:16:in `block in call'
activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in `tagged'
railties (3.2.13) lib/rails/rack/logger.rb:16:in `call'
actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in `call'
rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
rack (1.4.5) lib/rack/runtime.rb:17:in `call'
activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
rack (1.4.5) lib/rack/lock.rb:15:in `call'
actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:in `call'
railties (3.2.13) lib/rails/engine.rb:479:in `call'
railties (3.2.13) lib/rails/application.rb:223:in `call'
rack (1.4.5) lib/rack/content_length.rb:14:in `call'
railties (3.2.13) lib/rails/rack/log_tailer.rb:17:in `call'
rack (1.4.5) lib/rack/handler/webrick.rb:59:in `service'
c:/RubyOnRails/Ruby1.9.3/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
c:/RubyOnRails/Ruby1.9.3/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
c:/RubyOnRails/Ruby1.9.3/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
I'm confused about the version defined in the .gemspec
. It seems to be out of sync with the versions pushed to RubyGems. The latest version in RubyGems is 1.3.1, but I don't see how that's getting set in the .gemspec
. The 1-2-stable branch's .gemspec
lists the version number as 1.2.0
, but in all of the other branches it's 1.0.0
. Am I missing something?
I have recently done spree demo application with spree-2-1-stable + spree_auth_devise (2-1-stable).
where I am getting the below error when try to change password through forget password process
ActionController::RoutingError (uninitialized constant Spree::PasswordsController):
where above error getting while redirecting to application once we clicked on email forget password link...
Is there any thing missed for routings?
pls let me know thoughts?
Should I move locale files to spree_i18n?
It is these.
https://github.com/spree/spree_auth_devise/blob/master/config/locales/de.yml
https://github.com/spree/spree_auth_devise/blob/master/config/locales/nl.yml
After adding spree_auth_devise gem to Gemfile app fails with following error:
uninitialized constant Spree::Core::CurrentOrder
My Gemfile:
source 'https://rubygems.org'
gem 'rails', '3.2.8'
gem 'pg'
gem 'jquery-rails'
gem 'pry-rails'
gem 'russian'
gem 'spree', github: 'spree/spree'
gem 'spree_i18n', github: 'spree/spree_i18n'
gem 'spree_auth_devise', github: 'spree/spree_auth_devise'
group :assets do
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'
gem 'uglifier', '>= 1.0.3'
end
After I ran bundle update I get the no route matches error for forgot password.
As Devise will sign out any user whose password has been changed, we need to ensure that we re-authenticate the user changing the password, but ONLY if the password changed is own password.
I'm getting this error as soon as I add spree_social to my rails 3.2.8 app running on ruby 1.9.2-p320:
/Users/cooper/.rvm/gems/ruby-1.9.2-p320/bundler/gems/spree_auth_devise-154365f20cc2/config/initializers/spree.rb:1:in `<top (required)>': undefined method `user_class=' for Spree:Module (NoMethodError)
from /Users/cooper/.rvm/gems/ruby-1.9.2-p320/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:245:in `load'
from /Users/cooper/.rvm/gems/ruby-1.9.2-p320/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:245:in `block in load'
from /Users/cooper/.rvm/gems/ruby-1.9.2-p320/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:236:in `load_dependency'
from /Users/cooper/.rvm/gems/ruby-1.9.2-p320/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:245:in `load'
from /Users/cooper/.rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.8/lib/rails/engine.rb:588:in `block (2 levels) in <class:Engine>'
from /Users/cooper/.rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.8/lib/rails/engine.rb:587:in `each'
from /Users/cooper/.rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.8/lib/rails/engine.rb:587:in `block in <class:Engine>'
from /Users/cooper/.rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.8/lib/rails/initializable.rb:30:in `instance_exec'
from /Users/cooper/.rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.8/lib/rails/initializable.rb:30:in `run'
from /Users/cooper/.rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.8/lib/rails/initializable.rb:55:in `block in run_initializers'
from /Users/cooper/.rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.8/lib/rails/initializable.rb:54:in `each'
from /Users/cooper/.rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.8/lib/rails/initializable.rb:54:in `run_initializers'
from /Users/cooper/.rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.8/lib/rails/application.rb:136:in `initialize!'
from /Users/cooper/.rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.8/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /Volumes/Macintosh HD/Users/cooper/code/whitevapour/config/environment.rb:5:in `<top (required)>'
from /Users/cooper/.rvm/gems/ruby-1.9.2-p320/gems/polyglot-0.3.3/lib/polyglot.rb:63:in `require'
from /Users/cooper/.rvm/gems/ruby-1.9.2-p320/gems/polyglot-0.3.3/lib/polyglot.rb:63:in `require'
from /Users/cooper/.rvm/gems/ruby-1.9.2-p320/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:251:in `block in require'
from /Users/cooper/.rvm/gems/ruby-1.9.2-p320/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:236:in `load_dependency'
from /Users/cooper/.rvm/gems/ruby-1.9.2-p320/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:251:in `require'
from /Users/cooper/.rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.8/lib/rails/application.rb:103:in `require_environment!'
from /Users/cooper/.rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.8/lib/rails/commands.rb:25:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
My Spree Gems look like so:
gem 'rails', '3.2.8'
gem 'spree', :git => 'git://github.com/spree/spree.git', :branch => '1-1-stable'
gem 'spree_auth_devise', :git => 'git://github.com/spree/spree_auth_devise'
gem 'spree_heroku', :git => 'git://github.com/joneslee85/spree-heroku.git', :branch => '1-0-stable'
gem 'spree_gateway', :git => 'git://github.com/spree/spree_gateway.git', :branch => "1-1-stable"
gem "spree_social", :git => "git://github.com/spree/spree_social.git"
If I remove the spree social gem and use spree 1.2 instead of 1-1-stable, everything works fine.
Fore some reason, icon-search.png does not exist anymore (or at least I could not find it!)
undefined method 'anonymous?' for nil:NilClass
spree_auth_devise-b1c5f6d1a114/app/views/spree/users/show.html.erb:45
42: <% @body_id = 'login' %>
43: <div id="existing-customer">
44: <table><tr>
45: <% if @spree_user.anonymous? %>
46: <%= render :partial => 'spree/shared/social_registrations', :locals => {:user => @spree_user, :omniauth => @omniauth} %>
47: <% end %>
48: </tr></table>
/usr/local/rvm/gems/ruby-1.9.3-p374@shop/bundler/gems/spree_auth_devise-b1c5f6d1a114/app/views/spree/users/show.html.erb:45:in `_2a03aafd61fa5ab47f18cea0a45ab001'
actionpack (3.2.13) lib/action_view/template.rb:145:in `block in render'
activesupport (3.2.13) lib/active_support/notifications.rb:125:in `instrument'
actionpack (3.2.13) lib/action_view/template.rb:143:in `render'
/usr/local/rvm/gems/ruby-1.9.3-p374@shop/bundler/gems/deface-b23df0d7bb5b/lib/deface/action_view_extensions.rb:37:in `render'
Gemfile and lock https://gist.github.com/5541855
Strange thing is when I remove spree_social
then the "MyAccount" link works
gem "spree_social", github: 'spree/spree_social', branch: "1-3-stable"
Not sure whats happening there ?
On updating the gemfile I'm getting the below error, though oddly only after I've pushed to Heroku. Running in development locally is fine. I think this might be the gem at fault as I kept all the versioned gems the same, so the problem must have been introduced in one of the GitHub sourced gems.
I wonder if this commit could be what introduced the issue? 5682a56
Any thoughts welcome, thanks.
2013-02-12T00:01:12+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:317:in `rescue in depend_on': Missing helper file helpers/spree/store_helper.rb (LoadError)
2013-02-12T00:01:12+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:312:in `depend_on'
2013-02-12T00:01:12+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:225:in `require_dependency'
2013-02-12T00:01:12+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.12/lib/abstract_controller/helpers.rb:135:in `block in modules_for_helpers'
2013-02-12T00:01:12+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.12/lib/action_controller/metal/helpers.rb:92:in `modules_for_helpers'
2013-02-12T00:01:12+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/bundler/gems/spree_auth_devise-5682a5685982/app/controllers/spree/user_passwords_controller.rb:3:in `<class:UserPasswordsController>'
2013-02-12T00:01:12+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.12/lib/abstract_controller/helpers.rb:131:in `map!'
2013-02-12T00:01:12+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/polyglot-0.3.3/lib/polyglot.rb:63:in `require'
2013-02-12T00:01:12+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:251:in `block in require'
2013-02-12T00:01:12+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:236:in `load_dependency'
2013-02-12T00:01:12+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/bundler/gems/spree_auth_devise-5682a5685982/app/controllers/spree/user_passwords_controller.rb:1:in `<top (required)>'
2013-02-12T00:01:12+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:251:in `require'
2013-02-12T00:01:12+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:313:in `depend_on'
2013-02-12T00:01:12+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/polyglot-0.3.3/lib/polyglot.rb:63:in `require'
2013-02-12T00:01:12+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:359:in `require_or_load'
2013-02-12T00:01:12+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.12/lib/abstract_controller/helpers.rb:131:in `modules_for_helpers'
2013-02-12T00:01:12+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:225:in `require_dependency'
2013-02-12T00:01:12+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.12/lib/rails/engine.rb:438:in `block in eager_load!'
2013-02-12T00:01:12+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.12/lib/rails/application/railties.rb:8:in `each'
2013-02-12T00:01:12+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.12/lib/rails/engine.rb:439:in `block (2 levels) in eager_load!'
2013-02-12T00:01:12+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.12/lib/rails/engine.rb:436:in `eager_load!'
2013-02-12T00:01:12+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.12/lib/rails/initializable.rb:30:in `instance_exec'
2013-02-12T00:01:12+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.12/lib/rails/engine.rb:436:in `each'
2013-02-12T00:01:12+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.12/lib/rails/engine.rb:434:in `eager_load!'
2013-02-12T00:01:12+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.12/lib/rails/application/railties.rb:8:in `all'
2013-02-12T00:01:12+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.12/lib/rails/application/finisher.rb:53:in `block in <module:Finisher>'
2013-02-12T00:01:12+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.12/lib/rails/initializable.rb:55:in `block in run_initializers'
2013-02-12T00:01:12+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.12/lib/rails/railtie/configurable.rb:30:in `method_missing'
2013-02-12T00:01:12+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.12/lib/rails/initializable.rb:30:in `run'
2013-02-12T00:01:12+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.12/lib/abstract_controller/helpers.rb:95:in `helper'
2013-02-12T00:01:12+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.12/lib/rails/initializable.rb:54:in `run_initializers'
2013-02-12T00:01:12+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.12/lib/rails/initializable.rb:54:in `each'
2013-02-12T00:01:12+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.12/lib/rails/application.rb:136:in `initialize!'
I have added som fields to user model (phone, first name, last name etc.). When user is registering account and there is validation form error, after form submission, form fields are blank - especially email.
/Users/sturner/.rvm/gems/ruby-2.0.0-p247/bundler/gems/spree_auth_devise-bab2593f7590/app/models/spree/user.rb:3:in `class:User': uninitialized constant Spree::Core::UserBanners (NameError)
This commit spree/spree@2c5c2c4 removes it from the core, Do we need it or use it at all in the spree_auth_devise gem?
Spree_auth_devise currently decorates the Spree::ProductsController in a way that breaks the expected behavoir. The decorator does not use the active scope like the original method but instead it basically reimplements the active scope (not DRY). This causes unexpected behavoir when changing the products that the active scope returns (ie decorating it).
Additionally, there appears to be no difference in results between either version of the load_products method: in both cases 404 is returned when the product does not exist or the user is not allowed to see the product.
Imho the method should be either updated to use the active scope or removed entirely.
Hi,
I was redirected to this project page after encountering a similar error, described here.
https://groups.google.com/forum/?fromgroups=#!topic/spree-user/FwllExfmttM
Problem: using spree_fancy, page loads fine. After I try to login, destroy_user_session_path borks, and stays broken even when I try to reload the home page again.
gem file screenshot included.
steps to reproduce:
--- basic spree with spree installs store -A
--- add spree_fancy
--- try to login.
Hello,
I got an error msg when executing the command bundle exec rake spree_auth:admin:create
. Everything went well until the last step to setup admin.
Here's error msg:
rake aborted!
Association named 'spree_roles' was not found; perhaps you misspelled it?
Tasks: TOP => spree_auth:admin:create
(See full trace by running task with --trace)
The versions I am running:
Rails 3.2.8
* spree (1.3.0 ec7d6d5)
* spree_api (1.3.0)
* spree_auth_devise (1.0.0 887dba9)
* spree_cmd (1.3.0)
* spree_core (1.3.0)
* spree_dash (1.3.0)
* spree_promo (1.3.0)
* spree_reviews (1.0.0 d4611ac)
* spree_sample (1.3.0)
Did I miss anything? Thank you!
I don't use 'address' step in my application and I get region validation error (related to Address I guess) trying to checkout as guest.
Why not to take first of the checkout_steps?
current_order.state = current_order.checkout_steps.first
I dont see where can be wrong and i really i dont know because i try time after time with no results.. and i follow all instructions ..
In admin :
Like user :
I wanna confirmable for signup with email but after include ":confirmable,"
I have a problem with spree_contact_us , maybe the same reason..
Maybe i miss something in config/initializers/spree.rb ?
Thanks you,
Maria
As of recently running 'bundle exec rake sandbox' results in the following error:
/home/ben/.rvm/gems/ruby-1.9.3-p194/bundler/gems/spree_auth_devise-5628ce29248f/app/models/spree/current_order_decorator.rb:1:in `<top (required)>': uninitialized constant Spree::Core::ControllerHelpers::Order (NameError)
from /home/ben/.rvm/gems/ruby-1.9.3-p194/bundler/gems/spree_auth_devise-5628ce29248f/lib/spree/auth/engine.rb:13:in `block in activate'
from /home/ben/.rvm/gems/ruby-1.9.3-p194/bundler/gems/spree_auth_devise-5628ce29248f/lib/spree/auth/engine.rb:12:in `glob'
from /home/ben/.rvm/gems/ruby-1.9.3-p194/bundler/gems/spree_auth_devise-5628ce29248f/lib/spree/auth/engine.rb:12:in `activate'
from /home/ben/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:495:in `_run__4250063280465619842__prepare__1668597606134185025__callbacks'
from /home/ben/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:405:in `__run_callback'
from /home/ben/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:385:in `_run_prepare_callbacks'
from /home/ben/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:81:in `run_callbacks'
from /home/ben/.rvm/gems/ruby-1.9.3-p194/gems/actionpack-3.2.8/lib/action_dispatch/middleware/reloader.rb:74:in `prepare!'
from /home/ben/.rvm/gems/ruby-1.9.3-p194/gems/actionpack-3.2.8/lib/action_dispatch/middleware/reloader.rb:48:in `prepare!'
from /home/ben/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/application/finisher.rb:47:in `block in <module:Finisher>'
from /home/ben/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/initializable.rb:30:in `instance_exec'
from /home/ben/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/initializable.rb:30:in `run'
from /home/ben/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/initializable.rb:55:in `block in run_initializers'
from /home/ben/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/initializable.rb:54:in `each'
from /home/ben/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/initializable.rb:54:in `run_initializers'
from /home/ben/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/application.rb:136:in `initialize!'
from /home/ben/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /home/ben/sites/spree/sandbox/config/environment.rb:5:in `<top (required)>'
from /home/ben/.rvm/gems/ruby-1.9.3-p194/gems/polyglot-0.3.3/lib/polyglot.rb:63:in `require'
from /home/ben/.rvm/gems/ruby-1.9.3-p194/gems/polyglot-0.3.3/lib/polyglot.rb:63:in `require'
from /home/ben/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/application.rb:103:in `require_environment!'
from /home/ben/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/commands.rb:25:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
rake aborted!
uninitialized constant Spree::Core::ControllerHelpers::Order
As @petergoldstein mentioned in #119
In spree_core the created_by_id attribute was added to Spree::Order and is now being used to look up Spree::User.last_incomplete_spree_order. But this attribute is not being set if the user authenticates after the current_order is created. This looks like something that needs to be added to associated_user
Hi!
I'm studying how to build a gem for spree and cloned the spree_auth_devise do study it. This is what I've done:
(1) cloned the 1-3-stable branch of spree_auth_devise;
(2) executed: bundle install
(3) executed: bundle exec rake test_app
(4) executed: bundle exec rspec spec
For my surprise, I've got a lot of Fs....The complete output is below. Are you aware of that? Isn't something very broken?
Regards!
Tiago.
...........................................FF........................FF...FFFFFFFFFFF...FFFF...F....F
Failures:
Spree::ProductsController allows admins to view non-active products
Failure/Error: spree_get :show, :id => product.to_param
ActiveRecord::AssociationTypeMismatch:
Spree::User(#70150645500200) expected, got RSpec::Mocks::Mock(#70150587211420)
Spree::ProductsController cannot view non-active products
Failure/Error: spree_get :show, :id => product.to_param
ActiveRecord::AssociationTypeMismatch:
Spree::User(#70150645500200) expected, got RSpec::Mocks::Mock(#70150587211420)
Users editing users should let me edit the user email
Failure/Error: page.should have_content("successfully updated!")
expected there to be content "successfully updated!" in "\n Spree Administration: \n Users\n\n Spree.translations = {"date_picker":"yy/mm/dd","abbr_day_names":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"add":"Add","are_you_sure_delete":"Are you sure you want to delete this record?","bill_address":"Bill Address","choose_a_customer":"Choose a customer","confirm_delete":"Confirm Deletion","cut":"Cut","destroy":"Destroy","edit":"Edit","loading":"Loading","month_names":["January","February","March","April","May","June","July","August","September","October","November","December"],"more":"More","name":"Name","next":"Next","no_results":"No results","on_hand":"On Hand","paste":"Paste","previous":"Previous","remove":"Remove","rename":"Rename","searching":"Searching","sku":"SKU","type_to_search":"Type to search","taxon_placeholder":"Add a Taxon","value":"Value"}\n\n Spree.routes = {"variants_search":"/admin/variants/search.json","taxon_search":"/admin/taxons/search.json","user_search":"/admin/search/users.json","product_search":"/admin/products/search.json"};\n\n//\n\n \n\n Account updated!\n\n \n \n \n \nLoading...\n \n \n\n \n\n \n \n \nLogged in as: [email protected]\n\n \nAccount\n\n \nLogout\n\n \nStore\n\n \n \n \n \n Overview\nOrders\nProducts\nReports\nConfiguration\n\n PromotionsUsers\n\n \n \n \n \n \n \n \n Editing User\n\n \n \n \n Back To Users List\n \n\n \n \n \n \n \n \n\n \n \n \n \n\n \n \n\n General Settings\n\n \n \n \n\n \n \n \n \n \n Email\n \n \n Roles\n \n Admin \n \n \n\n \n \n \n \n Password\n \n \n Password Confirmation\n \n\n\n \n \n Update\n or\n cancel\n\n\n \n \n\n API Access\n\n\n No key\n\n \n \n Generate API key\n \n\n\n\n\n\n\n \n \n\n \n\n \n\n \n\n\n "
Users editing users should let me edit the user password
Failure/Error: page.should have_content("successfully updated!")
expected there to be content "successfully updated!" in "\n Spree Administration: \n Users\n\n Spree.translations = {"date_picker":"yy/mm/dd","abbr_day_names":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"add":"Add","are_you_sure_delete":"Are you sure you want to delete this record?","bill_address":"Bill Address","choose_a_customer":"Choose a customer","confirm_delete":"Confirm Deletion","cut":"Cut","destroy":"Destroy","edit":"Edit","loading":"Loading","month_names":["January","February","March","April","May","June","July","August","September","October","November","December"],"more":"More","name":"Name","next":"Next","no_results":"No results","on_hand":"On Hand","paste":"Paste","previous":"Previous","remove":"Remove","rename":"Rename","searching":"Searching","sku":"SKU","type_to_search":"Type to search","taxon_placeholder":"Add a Taxon","value":"Value"}\n\n Spree.routes = {"variants_search":"/admin/variants/search.json","taxon_search":"/admin/taxons/search.json","user_search":"/admin/search/users.json","product_search":"/admin/products/search.json"};\n\n//\n\n \n\n Account updated!\n\n \n \n \n \nLoading...\n \n \n\n \n\n \n \n \nLogged in as: [email protected]\n\n \nAccount\n\n \nLogout\n\n \nStore\n\n \n \n \n \n Overview\nOrders\nProducts\nReports\nConfiguration\n\n PromotionsUsers\n\n \n \n \n \n \n \n \n Editing User\n\n \n \n \n Back To Users List\n \n\n \n \n \n \n \n \n\n \n \n \n \n\n \n \n\n General Settings\n\n \n \n \n\n \n \n \n \n \n Email\n \n \n Roles\n \n Admin \n \n \n\n \n \n \n \n Password\n \n \n Password Confirmation\n \n\n\n \n \n Update\n or\n cancel\n\n\n \n \n\n API Access\n\n\n No key\n\n \n \n Generate API key\n \n\n\n\n\n\n\n \n \n\n \n\n \n\n \n\n\n "
Checkout should allow a visitor to checkout as guest, without registration
Failure/Error: shipping_method = create(:shipping_method)
NoMethodError:
undefined method `after_create=' for #Spree::Calculator::FlatRate:0x007f9a6df6a608
Checkout should associate an uncompleted guest order with user after logging in
Failure/Error: shipping_method = create(:shipping_method)
NoMethodError:
undefined method `after_create=' for #Spree::Calculator::FlatRate:0x007f9a72ff0b40
Checkout should associate an incomplete guest order with user after successful password reset
Failure/Error: shipping_method = create(:shipping_method)
NoMethodError:
undefined method `after_create=' for #Spree::Calculator::FlatRate:0x007f9a72f17250
Checkout should allow a user to register during checkout
Failure/Error: shipping_method = create(:shipping_method)
NoMethodError:
undefined method `after_create=' for #Spree::Calculator::FlatRate:0x007f9a6cb80db8
Checkout the current payment method does not support profiles
Failure/Error: shipping_method = create(:shipping_method)
NoMethodError:
undefined method `after_create=' for #Spree::Calculator::FlatRate:0x007f9a74c1a6b8
Checkout when no shipping methods have been configured
Failure/Error: shipping_method = create(:shipping_method)
NoMethodError:
undefined method after_create=' for #<Spree::Calculator::FlatRate:0x007f9a6f37fb48> # ./spec/requests/checkout_spec.rb:7:in
block (2 levels) in <top (required)>'
Checkout when no payment methods have been configured
Failure/Error: shipping_method = create(:shipping_method)
NoMethodError:
undefined method after_create=' for #<Spree::Calculator::FlatRate:0x007f9a72d49b80> # ./spec/requests/checkout_spec.rb:7:in
block (2 levels) in <top (required)>'
Checkout user submits an invalid credit card number
Failure/Error: shipping_method = create(:shipping_method)
NoMethodError:
undefined method after_create=' for #<Spree::Calculator::FlatRate:0x007f9a6a9d0740> # ./spec/requests/checkout_spec.rb:7:in
block (2 levels) in <top (required)>'
Checkout completing checkout for a free order, skipping payment step
Failure/Error: shipping_method = create(:shipping_method)
NoMethodError:
undefined method after_create=' for #<Spree::Calculator::FlatRate:0x007f9a72bdfa10> # ./spec/requests/checkout_spec.rb:7:in
block (2 levels) in <top (required)>'
Checkout completing checkout with an invalid address input initially
Failure/Error: shipping_method = create(:shipping_method)
NoMethodError:
undefined method after_create=' for #<Spree::Calculator::FlatRate:0x007f9a7286c108> # ./spec/requests/checkout_spec.rb:7:in
block (2 levels) in <top (required)>'
Checkout changing country to different zone during checkout should reset shipments
Failure/Error: shipping_method = create(:shipping_method)
NoMethodError:
undefined method after_create=' for #<Spree::Calculator::FlatRate:0x007f9a72fc8b90> # ./spec/requests/checkout_spec.rb:7:in
block (2 levels) in <top (required)>'
Reset Password should allow a user to supply an email for the password reset
Failure/Error: click_button "Reset my password"
ArgumentError:
A sender (Return-Path, Sender or From) required to send a message
# ./app/models/spree/user.rb:45:in send_reset_password_instructions' # ./app/controllers/spree/user_passwords_controller.rb:23:in
create'
# (eval):2:in click_button' # ./spec/requests/password_reset_spec.rb:15:in
block (2 levels) in <top (required)>'
promotion adjustments provides a promotion for the first order for a new user doesn't blow up the signup page
Failure/Error: shipping_method = create(:shipping_method)
NoMethodError:
undefined method after_create=' for #<Spree::Calculator::FlatRate:0x007f9a7293b7a0> # ./spec/requests/promotion_adjustment_spec.rb:8:in
block (2 levels) in <top (required)>'
promotion adjustments provides a promotion for the first order for a new user with an order correctly applies the adjustment if a user signs up as a real user
Failure/Error: shipping_method = create(:shipping_method)
NoMethodError:
undefined method after_create=' for #<Spree::Calculator::FlatRate:0x007f9a72db12d0> # ./spec/requests/promotion_adjustment_spec.rb:8:in
block (2 levels) in <top (required)>'
promotion adjustments provides a promotion for the first order for a new user without an order signing up, then placing an order
Failure/Error: shipping_method = create(:shipping_method)
NoMethodError:
undefined method after_create=' for #<Spree::Calculator::FlatRate:0x007f9a74823690> # ./spec/requests/promotion_adjustment_spec.rb:8:in
block (2 levels) in <top (required)>'
Sign In should allow a user to access a restricted page after logging in
Failure/Error: page.should have_content("Logged in successfully")
expected there to be content "Logged in successfully" in "\n Spree Administration: \n Overview\n\n Spree.translations = {"date_picker":"yy/mm/dd","abbr_day_names":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"add":"Add","are_you_sure_delete":"Are you sure you want to delete this record?","bill_address":"Bill Address","choose_a_customer":"Choose a customer","confirm_delete":"Confirm Deletion","cut":"Cut","destroy":"Destroy","edit":"Edit","loading":"Loading","month_names":["January","February","March","April","May","June","July","August","September","October","November","December"],"more":"More","name":"Name","next":"Next","no_results":"No results","on_hand":"On Hand","paste":"Paste","previous":"Previous","remove":"Remove","rename":"Rename","searching":"Searching","sku":"SKU","type_to_search":"Type to search","taxon_placeholder":"Add a Taxon","value":"Value"}\n\n Spree.routes = {"variants_search":"/admin/variants/search.json","taxon_search":"/admin/taxons/search.json","user_search":"/admin/search/users.json","product_search":"/admin/products/search.json"};\n\n//\n\n \n\n\n \n \n \n \nLoading...\n \n \n\n \n\n \n \n \nLogged in as: [email protected]\n\n \nAccount\n\n \nLogout\n\n \nStore\n\n \n \n \n \n Overview\nOrders\nProducts\nReports\nConfiguration\n\n PromotionsUsers\n\n \n \n \n \n \n \n \n \n Choose Dashboard Locale: \n \n\n \n \n \n \n \n \n\n \n \n \n \n\n \n \n \n\n \n \n//
Users admin editing roles
Failure/Error: page.should have_content("User has been successfully updated!")
expected there to be content "User has been successfully updated!" in "\n Spree Administration: \n Users\n\n Spree.translations = {"date_picker":"yy/mm/dd","abbr_day_names":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"add":"Add","are_you_sure_delete":"Are you sure you want to delete this record?","bill_address":"Bill Address","choose_a_customer":"Choose a customer","confirm_delete":"Confirm Deletion","cut":"Cut","destroy":"Destroy","edit":"Edit","loading":"Loading","month_names":["January","February","March","April","May","June","July","August","September","October","November","December"],"more":"More","name":"Name","next":"Next","no_results":"No results","on_hand":"On Hand","paste":"Paste","previous":"Previous","remove":"Remove","rename":"Rename","searching":"Searching","sku":"SKU","type_to_search":"Type to search","taxon_placeholder":"Add a Taxon","value":"Value"}\n\n Spree.routes = {"variants_search":"/admin/variants/search.json","taxon_search":"/admin/taxons/search.json","user_search":"/admin/search/users.json","product_search":"/admin/products/search.json"};\n\n//\n\n \n\n Account updated!\n\n \n \n \n \nLoading...\n \n \n\n \n\n \n \n \nLogged in as: [email protected]\n\n \nAccount\n\n \nLogout\n\n \nStore\n\n \n \n \n \n Overview\nOrders\nProducts\nReports\nConfiguration\n\n PromotionsUsers\n\n \n \n \n \n \n \n \n Editing User\n\n \n \n \n Back To Users List\n \n\n \n \n \n \n \n \n\n \n \n \n \n\n \n \n\n General Settings\n\n \n \n \n\n \n \n \n \n \n Email\n \n \n Roles\n \n User \n \n \n Admin \n \n \n\n \n \n \n \n Password\n \n \n Password Confirmation\n \n\n\n \n \n Update\n or\n cancel\n\n\n \n \n\n API Access\n\n\n No key\n\n \n \n Generate API key\n \n\n\n\n\n\n\n \n \n\n \n\n \n\n \n\n\n "
# ./spec/requests/user_spec.rb:26:in `block (2 levels) in <top (required)>'
Finished in 33.01 seconds
101 examples, 21 failures
Failed examples:
rspec ./spec/controllers/spree/products_controller_spec.rb:6 # Spree::ProductsController allows admins to view non-active products
rspec ./spec/controllers/spree/products_controller_spec.rb:13 # Spree::ProductsController cannot view non-active products
rspec ./spec/requests/admin/users_spec.rb:52 # Users editing users should let me edit the user email
rspec ./spec/requests/admin/users_spec.rb:60 # Users editing users should let me edit the user password
rspec ./spec/requests/checkout_spec.rb:27 # Checkout should allow a visitor to checkout as guest, without registration
rspec ./spec/requests/checkout_spec.rb:53 # Checkout should associate an uncompleted guest order with user after logging in
rspec ./spec/requests/checkout_spec.rb:84 # Checkout should associate an incomplete guest order with user after successful password reset
rspec ./spec/requests/checkout_spec.rb:114 # Checkout should allow a user to register during checkout
rspec ./spec/requests/checkout_spec.rb:142 # Checkout the current payment method does not support profiles
rspec ./spec/requests/checkout_spec.rb:166 # Checkout when no shipping methods have been configured
rspec ./spec/requests/checkout_spec.rb:186 # Checkout when no payment methods have been configured
rspec ./spec/requests/checkout_spec.rb:207 # Checkout user submits an invalid credit card number
rspec ./spec/requests/checkout_spec.rb:232 # Checkout completing checkout for a free order, skipping payment step
rspec ./spec/requests/checkout_spec.rb:254 # Checkout completing checkout with an invalid address input initially
rspec ./spec/requests/checkout_spec.rb:280 # Checkout changing country to different zone during checkout should reset shipments
rspec ./spec/requests/password_reset_spec.rb:10 # Reset Password should allow a user to supply an email for the password reset
rspec ./spec/requests/promotion_adjustment_spec.rb:53 # promotion adjustments provides a promotion for the first order for a new user doesn't blow up the signup page
rspec ./spec/requests/promotion_adjustment_spec.rb:69 # promotion adjustments provides a promotion for the first order for a new user with an order correctly applies the adjustment if a user signs up as a real user
rspec ./spec/requests/promotion_adjustment_spec.rb:84 # promotion adjustments provides a promotion for the first order for a new user without an order signing up, then placing an order
rspec ./spec/requests/sign_in_spec.rb:32 # Sign In should allow a user to access a restricted page after logging in
rspec ./spec/requests/user_spec.rb:23 # Users admin editing roles
Here should be params[:state] I guess:
def skip_state_validation?
%w(registration update_registration).include?(params[:action])
end
And it seems like whole decorator of CheckoutController is not working. Because of defined?(Spree::CheckoutController) that returns nil for some reason.
I would like to use spree_core and spree_backend and then write my own shop frontend. However, spree_auth_device depends on spree_frontend. Is there any way to avoid implementing authentication myself?
Hi,
I could upgraded the spree and related extensions version from 1.2 to 1.3
But there are some errors with devise user like I couldn't see password related fields in signup form while user creation.
And I tried to create admin user from console but there getting below error with auth_devise
/home/user/.rvm/gems/ruby-1.9.3-p448@oct3fbs13/bundler/gems/spree_auth_devise-0be544ef895d/db/default/users.rb:66:in create_admin_user' /home/user/.rvm/gems/ruby-1.9.3-p448@oct3fbs13/bundler/gems/spree_auth_devise-0be544ef895d/db/default/users.rb:74:in
<top (required)>'
Any big change in devise from spree 1.1 to 1.3?
as I did below things,
spree_auth_devise
rake railties:install:migrations
bundle exec rake spree_auth:install:migrations
please let me know your ideas.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.