Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

route error when visiting admin dashboard #1311

Closed
hopewise opened this issue Sep 23, 2017 · 5 comments
Closed

route error when visiting admin dashboard #1311

hopewise opened this issue Sep 23, 2017 · 5 comments

Comments

@hopewise
Copy link

I am using Rails 4.2, I have installed the stable version:

gem 'alchemy_cms', github: 'AlchemyCMS/alchemy_cms', branch: '3.6-stable'

I have mounted alchemy on blog as: mount Alchemy::Engine => 'blog'
but visiting localhost:3000/blog/admin would result into route error

Any idea?

@tvdeyen
Copy link
Member

tvdeyen commented Sep 23, 2017

Hard to tell without more information. Could you please show as a stack trace and your Gemfile.lock.

@hopewise
Copy link
Author

hopewise commented Sep 24, 2017

Here is the Gemfile.lock https://gist.github.com/hopewise/ce255ac66d17e08172b9979c59689fb2
I will provide you with stack trace when I go home.. thanks

@hopewise
Copy link
Author

Here is the stack trace:

I've noticed that /blog/admin would redirect to /admin/dashboard which should be /blog/admin/dashboard ?

Started GET "/blog/admin" for 127.0.0.1 at 2017-09-26 06:30:34 +0300


Started GET "/admin/dashboard" for 127.0.0.1 at 2017-09-26 06:30:34 +0300
Processing by ApplicationController#routing_error as HTML
  Parameters: {"path"=>"admin/dashboard"}
  User Load (197.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1  ORDER BY "users"."id" ASC LIMIT 1  [["id", 1]]
  Subscription Load (190.4ms)  SELECT  "subscriptions".* FROM "subscriptions" WHERE "subscriptions"."user_id" = $1 LIMIT 1  [["user_id", 1]]
Completed 404 Not Found in 399ms
admin/dashboard excluded from capture: DSN not set

ActionController::RoutingError (admin/dashboard):
  app/controllers/application_controller.rb:35:in `routing_error'
  lib/rack/seoredirect.rb:20:in `call'


  Rendered /Users/Apple/.rvm/gems/ruby-2.2.2@dcaclab/gems/actionpack-4.2.0/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (10.7ms)
  Rendered /Users/Apple/.rvm/gems/ruby-2.2.2@dcaclab/gems/actionpack-4.2.0/lib/action_dispatch/middleware/templates/routes/_route.html.erb (40.4ms)
  Rendered /Users/Apple/.rvm/gems/ruby-2.2.2@dcaclab/gems/actionpack-4.2.0/lib/action_dispatch/middleware/templates/routes/_route.html.erb (52.3ms)
  Rendered /Users/Apple/.rvm/gems/ruby-2.2.2@dcaclab/gems/actionpack-4.2.0/lib/action_dispatch/middleware/templates/routes/_table.html.erb (14.5ms)
  Rendered /Users/Apple/.rvm/gems/ruby-2.2.2@dcaclab/gems/actionpack-4.2.0/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (2.0ms)
  Rendered /Users/Apple/.rvm/gems/ruby-2.2.2@dcaclab/gems/actionpack-4.2.0/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (1538.6ms)

@tvdeyen
Copy link
Member

tvdeyen commented Nov 24, 2017

Duplicate of #1244

@tvdeyen tvdeyen marked this as a duplicate of #1244 Nov 24, 2017
@tvdeyen tvdeyen closed this as completed Nov 24, 2017
@tvdeyen
Copy link
Member

tvdeyen commented Nov 24, 2017

Should be fixed by #1329

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants