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

Ruby 2.3 and Rails 4.2.5 features_url return wrong URL #39

Open
thucnguyen opened this issue Mar 3, 2016 · 3 comments
Open

Ruby 2.3 and Rails 4.2.5 features_url return wrong URL #39

thucnguyen opened this issue Mar 3, 2016 · 3 comments

Comments

@thucnguyen
Copy link

With ruby 2.3 and Rails 4.2.5 features_url in StrategiesController return wrong url.
In development environment, it return http://localhost:3000/assets?controller=flip%2Ffeatures

@rubyconvict
Copy link

If you use it as a namespaced resource just mount the engine like this:

mount Flip::Engine => '/tools/features', as: 'features'

then features_url will work fine

@thucnguyen
Copy link
Author

Thanks! It looks great. I will give a try when I have chain.

@thucnguyen
Copy link
Author

It work for me. Thank you, @rubyconvict!

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