Comments (8)
I have fixed my issue by replacing spree.destroy_user_session_path with spree.logout_path.
found here:
https://github.com/spree/spree_auth_devise/blob/master/lib/spree/authentication_helpers.rb
To me this makes sense, but I am not sure what else the destroy_user_session_path does that the logout_path doesn't. Can someone confirm with me that this is indeed the valid fix so that I may set up a pull request for spree_fancy?
Thanks
from spree_auth_devise.
@nma: Could you please include the text form of your Gemfile
so that I can copy and paste it? An image simply won't do the job.
from spree_auth_devise.
@nma Also, could you please include a stacktrace for this error so that I can see what's going wrong?
from spree_auth_devise.
@radar: Sure thing.
source 'https://rubygems.org'
gem 'rails', '3.2.13'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
group :development do
gem 'sqlite3'
end
group :production do
gem 'pg'
end
# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', :platforms => :ruby
gem 'uglifier', '>= 1.0.3'
end
gem 'jquery-rails'
# To use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.0.0'
# To use Jbuilder templates for JSON
# gem 'jbuilder'
# Use unicorn as the app server
# gem 'unicorn'
# Deploy with Capistrano
# gem 'capistrano'
# To use debugger
# gem 'debugger'
gem 'spree', '1.3.2'
gem 'spree_gateway', :github => 'spree/spree_gateway', :branch => '1-3-stable'
gem 'spree_auth_devise', :github => 'spree/spree_auth_devise', :branch => '1-3-stable'
gem 'spree_fancy', :github => 'spree/spree_fancy', :branch => '1-3-stable'
NoMethodError in Spree/home#index
Showing /usr/local/workspace/spree/vendor/bundle/gems/spree_core-1.3.2/app/views/spree/shared/_nav_bar.html.erb where line #10 raised:
undefined method `destroy_user_session_path' for #<ActionDispatch::Routing::RoutesProxy:0x007fb9deb7dc30>
Extracted source (around line #10):
7: <%= link_to content_tag(:i, '', :class => 'icon-user-5'), spree.account_path, :title => t(:my_account) %>
8: </li>
9: <li>
10: <%= link_to content_tag(:i, '', :class => 'icon-logout-2'), spree.destroy_user_session_path, :title => t(:logout) %>
11: </li>
12: <% else %>
13: <li id="link-to-login">
Trace of template inclusion: vendor/bundle/gems/spree_core-1.3.2/app/views/spree/shared/_header.html.erb, vendor/bundle/gems/spree_core-1.3.2/app/views/spree/layouts/spree_application.html.erb
Rails.root: /usr/local/workspace/spree
from spree_auth_devise.
vendor/bundle/gems/actionpack-3.2.13/lib/action_dispatch/routing/routes_proxy.rb:34:in `method_missing'
vendor/bundle/gems/spree_core-1.3.2/app/views/spree/shared/_nav_bar.html.erb:10:in `_919ed3f8bd875ec6d75e712865649bca'
vendor/bundle/gems/actionpack-3.2.13/lib/action_view/template.rb:145:in `block in render'
vendor/bundle/gems/activesupport-3.2.13/lib/active_support/notifications.rb:125:in `instrument'
vendor/bundle/gems/actionpack-3.2.13/lib/action_view/template.rb:143:in `render'
vendor/bundle/gems/deface-0.9.1/lib/deface/action_view_extensions.rb:37:in `render'
vendor/bundle/gems/actionpack-3.2.13/lib/action_view/renderer/partial_renderer.rb:265:in `render_partial'
vendor/bundle/gems/actionpack-3.2.13/lib/action_view/renderer/partial_renderer.rb:238:in `block in render'
vendor/bundle/gems/actionpack-3.2.13/lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument'
vendor/bundle/gems/activesupport-3.2.13/lib/active_support/notifications.rb:123:in `block in instrument'
vendor/bundle/gems/activesupport-3.2.13/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
vendor/bundle/gems/activesupport-3.2.13/lib/active_support/notifications.rb:123:in `instrument'
vendor/bundle/gems/actionpack-3.2.13/lib/action_view/renderer/abstract_renderer.rb:38:in `instrument'
vendor/bundle/gems/actionpack-3.2.13/lib/action_view/renderer/partial_renderer.rb:237:in `render'
vendor/bundle/gems/actionpack-3.2.13/lib/action_view/renderer/renderer.rb:41:in `render_partial'
vendor/bundle/gems/actionpack-3.2.13/lib/action_view/renderer/renderer.rb:15:in `render'
vendor/bundle/gems/actionpack-3.2.13/lib/action_view/helpers/rendering_helper.rb:24:in `render'
vendor/bundle/gems/spree_core-1.3.2/app/views/spree/shared/_header.html.erb:3:in `_51fe7650482e75d666957fe648b70be6'
vendor/bundle/gems/actionpack-3.2.13/lib/action_view/template.rb:145:in `block in render'
vendor/bundle/gems/activesupport-3.2.13/lib/active_support/notifications.rb:125:in `instrument'
vendor/bundle/gems/actionpack-3.2.13/lib/action_view/template.rb:143:in `render'
vendor/bundle/gems/deface-0.9.1/lib/deface/action_view_extensions.rb:37:in `render'
vendor/bundle/gems/actionpack-3.2.13/lib/action_view/renderer/partial_renderer.rb:265:in `render_partial'
vendor/bundle/gems/actionpack-3.2.13/lib/action_view/renderer/partial_renderer.rb:238:in `block in render'
vendor/bundle/gems/actionpack-3.2.13/lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument'
vendor/bundle/gems/activesupport-3.2.13/lib/active_support/notifications.rb:123:in `block in instrument'
vendor/bundle/gems/activesupport-3.2.13/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
vendor/bundle/gems/activesupport-3.2.13/lib/active_support/notifications.rb:123:in `instrument'
vendor/bundle/gems/actionpack-3.2.13/lib/action_view/renderer/abstract_renderer.rb:38:in `instrument'
vendor/bundle/gems/actionpack-3.2.13/lib/action_view/renderer/partial_renderer.rb:237:in `render'
vendor/bundle/gems/actionpack-3.2.13/lib/action_view/renderer/renderer.rb:41:in `render_partial'
vendor/bundle/gems/actionpack-3.2.13/lib/action_view/renderer/renderer.rb:15:in `render'
vendor/bundle/gems/actionpack-3.2.13/lib/action_view/helpers/rendering_helper.rb:24:in `render'
vendor/bundle/gems/spree_core-1.3.2/app/views/spree/layouts/spree_application.html.erb:24:in `_10333f173660f242fe38e6ef0c1aae0e'
vendor/bundle/gems/actionpack-3.2.13/lib/action_view/template.rb:145:in `block in render'
vendor/bundle/gems/activesupport-3.2.13/lib/active_support/notifications.rb:125:in `instrument'
vendor/bundle/gems/actionpack-3.2.13/lib/action_view/template.rb:143:in `render'
vendor/bundle/gems/deface-0.9.1/lib/deface/action_view_extensions.rb:37:in `render'
vendor/bundle/gems/actionpack-3.2.13/lib/action_view/renderer/template_renderer.rb:59:in `render_with_layout'
vendor/bundle/gems/actionpack-3.2.13/lib/action_view/renderer/template_renderer.rb:45:in `render_template'
vendor/bundle/gems/actionpack-3.2.13/lib/action_view/renderer/template_renderer.rb:18:in `render'
vendor/bundle/gems/actionpack-3.2.13/lib/action_view/renderer/renderer.rb:36:in `render_template'
vendor/bundle/gems/actionpack-3.2.13/lib/action_view/renderer/renderer.rb:17:in `render'
vendor/bundle/gems/actionpack-3.2.13/lib/abstract_controller/rendering.rb:110:in `_render_template'
vendor/bundle/gems/actionpack-3.2.13/lib/action_controller/metal/streaming.rb:225:in `_render_template'
vendor/bundle/gems/actionpack-3.2.13/lib/abstract_controller/rendering.rb:103:in `render_to_body'
vendor/bundle/gems/actionpack-3.2.13/lib/action_controller/metal/renderers.rb:28:in `render_to_body'
vendor/bundle/gems/actionpack-3.2.13/lib/action_controller/metal/compatibility.rb:50:in `render_to_body'
vendor/bundle/gems/actionpack-3.2.13/lib/abstract_controller/rendering.rb:88:in `render'
vendor/bundle/gems/actionpack-3.2.13/lib/action_controller/metal/rendering.rb:16:in `render'
vendor/bundle/gems/actionpack-3.2.13/lib/action_controller/metal/instrumentation.rb:40:in `block (2 levels) in render'
vendor/bundle/gems/activesupport-3.2.13/lib/active_support/core_ext/benchmark.rb:5:in `block in ms'
/Users/nickma/.rbenv/versions/1.9.3-p392/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'
vendor/bundle/gems/activesupport-3.2.13/lib/active_support/core_ext/benchmark.rb:5:in `ms'
vendor/bundle/gems/actionpack-3.2.13/lib/action_controller/metal/instrumentation.rb:40:in `block in render'
vendor/bundle/gems/actionpack-3.2.13/lib/action_controller/metal/instrumentation.rb:83:in `cleanup_view_runtime'
vendor/bundle/gems/activerecord-3.2.13/lib/active_record/railties/controller_runtime.rb:24:in `cleanup_view_runtime'
vendor/bundle/gems/actionpack-3.2.13/lib/action_controller/metal/instrumentation.rb:39:in `render'
vendor/bundle/gems/actionpack-3.2.13/lib/action_controller/metal/implicit_render.rb:10:in `default_render'
vendor/bundle/gems/actionpack-3.2.13/lib/action_controller/metal/implicit_render.rb:5:in `send_action'
vendor/bundle/gems/actionpack-3.2.13/lib/abstract_controller/base.rb:167:in `process_action'
vendor/bundle/gems/actionpack-3.2.13/lib/action_controller/metal/rendering.rb:10:in `process_action'
vendor/bundle/gems/actionpack-3.2.13/lib/abstract_controller/callbacks.rb:18:in `block in process_action'
vendor/bundle/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:458:in `_run__1206373873243430446__process_action__3329403014231767529__callbacks'
vendor/bundle/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:405:in `__run_callback'
vendor/bundle/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
vendor/bundle/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:81:in `run_callbacks'
vendor/bundle/gems/actionpack-3.2.13/lib/abstract_controller/callbacks.rb:17:in `process_action'
vendor/bundle/gems/actionpack-3.2.13/lib/action_controller/metal/rescue.rb:29:in `process_action'
vendor/bundle/gems/actionpack-3.2.13/lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
vendor/bundle/gems/activesupport-3.2.13/lib/active_support/notifications.rb:123:in `block in instrument'
vendor/bundle/gems/activesupport-3.2.13/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
vendor/bundle/gems/activesupport-3.2.13/lib/active_support/notifications.rb:123:in `instrument'
vendor/bundle/gems/actionpack-3.2.13/lib/action_controller/metal/instrumentation.rb:29:in `process_action'
vendor/bundle/gems/actionpack-3.2.13/lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
vendor/bundle/gems/activerecord-3.2.13/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
vendor/bundle/gems/actionpack-3.2.13/lib/abstract_controller/base.rb:121:in `process'
vendor/bundle/gems/actionpack-3.2.13/lib/abstract_controller/rendering.rb:45:in `process'
vendor/bundle/gems/actionpack-3.2.13/lib/action_controller/metal.rb:203:in `dispatch'
vendor/bundle/gems/actionpack-3.2.13/lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
vendor/bundle/gems/actionpack-3.2.13/lib/action_controller/metal.rb:246:in `block in action'
vendor/bundle/gems/actionpack-3.2.13/lib/action_dispatch/routing/route_set.rb:73:in `call'
vendor/bundle/gems/actionpack-3.2.13/lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
vendor/bundle/gems/actionpack-3.2.13/lib/action_dispatch/routing/route_set.rb:36:in `call'
vendor/bundle/gems/journey-1.0.4/lib/journey/router.rb:68:in `block in call'
vendor/bundle/gems/journey-1.0.4/lib/journey/router.rb:56:in `each'
vendor/bundle/gems/journey-1.0.4/lib/journey/router.rb:56:in `call'
vendor/bundle/gems/actionpack-3.2.13/lib/action_dispatch/routing/route_set.rb:612:in `call'
vendor/bundle/gems/spree_core-1.3.2/lib/spree/core/middleware/redirect_legacy_product_url.rb:13:in `call'
vendor/bundle/gems/spree_core-1.3.2/lib/spree/core/middleware/seo_assist.rb:27:in `call'
vendor/bundle/gems/railties-3.2.13/lib/rails/engine.rb:479:in `call'
vendor/bundle/gems/railties-3.2.13/lib/rails/railtie/configurable.rb:30:in `method_missing'
vendor/bundle/gems/journey-1.0.4/lib/journey/router.rb:68:in `block in call'
vendor/bundle/gems/journey-1.0.4/lib/journey/router.rb:56:in `each'
vendor/bundle/gems/journey-1.0.4/lib/journey/router.rb:56:in `call'
vendor/bundle/gems/actionpack-3.2.13/lib/action_dispatch/routing/route_set.rb:612:in `call'
vendor/bundle/gems/warden-1.2.1/lib/warden/manager.rb:35:in `block in call'
vendor/bundle/gems/warden-1.2.1/lib/warden/manager.rb:34:in `catch'
vendor/bundle/gems/warden-1.2.1/lib/warden/manager.rb:34:in `call'
vendor/bundle/gems/actionpack-3.2.13/lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
vendor/bundle/gems/rack-1.4.5/lib/rack/etag.rb:23:in `call'
vendor/bundle/gems/rack-1.4.5/lib/rack/conditionalget.rb:25:in `call'
vendor/bundle/gems/actionpack-3.2.13/lib/action_dispatch/middleware/head.rb:14:in `call'
vendor/bundle/gems/actionpack-3.2.13/lib/action_dispatch/middleware/params_parser.rb:21:in `call'
vendor/bundle/gems/actionpack-3.2.13/lib/action_dispatch/middleware/flash.rb:242:in `call'
vendor/bundle/gems/rack-1.4.5/lib/rack/session/abstract/id.rb:210:in `context'
vendor/bundle/gems/rack-1.4.5/lib/rack/session/abstract/id.rb:205:in `call'
vendor/bundle/gems/actionpack-3.2.13/lib/action_dispatch/middleware/cookies.rb:341:in `call'
vendor/bundle/gems/activerecord-3.2.13/lib/active_record/query_cache.rb:64:in `call'
vendor/bundle/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call'
vendor/bundle/gems/actionpack-3.2.13/lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
vendor/bundle/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:405:in `_run__1976308084848481836__call__3935221663926431615__callbacks'
vendor/bundle/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:405:in `__run_callback'
vendor/bundle/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
vendor/bundle/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:81:in `run_callbacks'
vendor/bundle/gems/actionpack-3.2.13/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
vendor/bundle/gems/actionpack-3.2.13/lib/action_dispatch/middleware/reloader.rb:65:in `call'
vendor/bundle/gems/actionpack-3.2.13/lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
vendor/bundle/gems/actionpack-3.2.13/lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
vendor/bundle/gems/actionpack-3.2.13/lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
vendor/bundle/gems/railties-3.2.13/lib/rails/rack/logger.rb:32:in `call_app'
vendor/bundle/gems/railties-3.2.13/lib/rails/rack/logger.rb:16:in `block in call'
vendor/bundle/gems/activesupport-3.2.13/lib/active_support/tagged_logging.rb:22:in `tagged'
vendor/bundle/gems/railties-3.2.13/lib/rails/rack/logger.rb:16:in `call'
vendor/bundle/gems/actionpack-3.2.13/lib/action_dispatch/middleware/request_id.rb:22:in `call'
vendor/bundle/gems/rack-1.4.5/lib/rack/methodoverride.rb:21:in `call'
vendor/bundle/gems/rack-1.4.5/lib/rack/runtime.rb:17:in `call'
vendor/bundle/gems/activesupport-3.2.13/lib/active_support/cache/strategy/local_cache.rb:72:in `call'
vendor/bundle/gems/rack-1.4.5/lib/rack/lock.rb:15:in `call'
vendor/bundle/gems/actionpack-3.2.13/lib/action_dispatch/middleware/static.rb:63:in `call'
vendor/bundle/gems/railties-3.2.13/lib/rails/engine.rb:479:in `call'
vendor/bundle/gems/railties-3.2.13/lib/rails/application.rb:223:in `call'
vendor/bundle/gems/rack-1.4.5/lib/rack/content_length.rb:14:in `call'
vendor/bundle/gems/railties-3.2.13/lib/rails/rack/log_tailer.rb:17:in `call'
vendor/bundle/gems/rack-1.4.5/lib/rack/handler/webrick.rb:59:in `service'
/Users/nickma/.rbenv/versions/1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
/Users/nickma/.rbenv/versions/1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
/Users/nickma/.rbenv/versions/1.9.3-p392/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
from spree_auth_devise.
I've pushed a new commit to 1-3-stable which should fix this problem. Can you please run bundle update spree_auth_devise
and see if that fixes it for you?
from spree_auth_devise.
Yes, it works fine now. Thank you 👍
from spree_auth_devise.
Thank you for confirming.
from spree_auth_devise.
Related Issues (20)
- login error devise 4.3.0 HOT 10
- Authorization failure page is rendered for not authenticated user
- Spree::Api 'checkouts#update' in production mode causes exception in Metal decorator HOT 1
- Bypass option is deprecated
- Multiple issues with specs
- Login without email impossible due to unique index on `email` column
- Devise Syntax Error HOT 2
- customize user confirmation email url HOT 1
- How can I set up the devise lockable module?
- Alerts are duplicated
- Users can't be really destroyed
- Order token is persisted on logout
- No Way For Users To Re-send The Account Confirmation Email HOT 1
- UserRegistrationsController won't inherit from Spree::BaseController
- 2-Factor Authentication HOT 2
- ArgumentError:wrong number of arguments (given 0, expected 1) on Spree::User#send_confirmation_instructions (spree_auth_devise 4.3.0) HOT 6
- Spree backend user session fallback root path is not admin_path
- Uninitialized constant Spree::UsersController with spree legacy frontend HOT 2
- 4.5.0 breaks rails version resolution (bundler) HOT 1
- URL Generation issue after Admin login HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spree_auth_devise.