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

Add Rails 5.0 compatibility #171

Closed
dlupu opened this issue Dec 26, 2015 · 3 comments
Closed

Add Rails 5.0 compatibility #171

dlupu opened this issue Dec 26, 2015 · 3 comments

Comments

@dlupu
Copy link

dlupu commented Dec 26, 2015

Hello,

I'm migrating a project from Rails 4.2.5 to Rails 5.0.0.beta1 and I'm getting the following error

ActionView::Template::Error: private method `routes' called for #ActionDispatch::Routing::RouteSet::NamedRouteCollection:0x007fde7a5e4498

Complete backtrace : https://gist.github.com/dlupu/8d122a4d8ff64ab5cc4f

BR
Dorian

@le0pard
Copy link
Member

le0pard commented Dec 26, 2015

I will review PR if any. Right now I don't have project with rails 5 to check this problem :)

@ndvbd
Copy link

ndvbd commented Mar 9, 2018

For some reason someone made the routes private in NamedRouteCollection in Rails 5. In Rails 4 it was accessible.

How do we access the routes now?

@le0pard
Copy link
Member

le0pard commented Mar 9, 2018

@NadavB I have project with rails 5.1.5 - js-routes (1.4.3) works without problem. So check you project.

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