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

No routes created by sabisu #39

Open
jrball3 opened this issue Feb 14, 2016 · 7 comments
Open

No routes created by sabisu #39

jrball3 opened this issue Feb 14, 2016 · 7 comments

Comments

@jrball3
Copy link

jrball3 commented Feb 14, 2016

I've followed the directions to install and entered in my user model as well as specified by default URI which I have confirmed to be correct many times, and browsing to the following location causes a routing error: No route matches [GET] "/sabisu_rails/explorer"

Under the routes listing below the error the following entry is the first one listed:
Helper HTTP Verb Path Controller#action
sabisu_rails_path /sabisu_rails SabisuRails::Engine

Notice that there is no HTTP Verb listed. Also, at the bottom of the routes listing, nothing is listed under "Routes for SabisuRails::Engine"

Do I need to add anything to my routes.rb??

It seems like the only thing that "rails generate sabisu_rails:install" did was the following:

J:RailsApp Jon$ rails generate sabisu_rails:install
Running via Spring preloader in process 33069
      create  config/initializers/sabisu_rails.rb
       route  mount SabisuRails::Engine => "/sabisu_rails"

Is this the correct behavior?

@Lazarus404
Copy link

I'm getting this, too. Any help appreciated. routes.rb contains:

mount SabisuRails::Engine => "/sabisu_rails"

but still can't find the route when run.

@Lazarus404
Copy link

Okay, I somehow managed to fix this (or potentially added a bug before it), as I now get:

RoutingError (uninitialized constant SabisuRails::ApplicationController):

Not sure what I did, though. All I did was update the initializer.

@kurenn
Copy link
Owner

kurenn commented Mar 1, 2016

@Lazarus404 The path to view the explorer is /sabisu_rails/explorer

@Lazarus404
Copy link

I actually got this running eventually. I had to hack it, though. It was required that I rename the view sabisu_rails.erb to sabisu.erb and I had to add an application_controller.rb class to the gem itself. It now runs with the latest rails.

@kurenn
Copy link
Owner

kurenn commented Mar 1, 2016

Sweet, maybe you can send a pull request with the fix?

@Lazarus404
Copy link

I also got the spec files from the apionrails book updated to latest rspec, though due to a bug in devise, the checks for 401 fail

@Lazarus404
Copy link

Sure thing

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

3 participants