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

JavaScript asset not found if directory has extension (.js) #18859

Closed
ledestin opened this issue Feb 9, 2015 · 6 comments
Closed

JavaScript asset not found if directory has extension (.js) #18859

ledestin opened this issue Feb 9, 2015 · 6 comments

Comments

@ledestin
Copy link

ledestin commented Feb 9, 2015

Tried installing uri.js with Bower, and /assets/uri.js is not found by Rails. On the other hand, /assets/uri works without a hitch.

@ledestin
Copy link
Author

ledestin commented Feb 9, 2015

I.e. I copied uri.js to uri to try.

@rafaelfranca
Copy link
Member

Can you please provide a sample application that reproduces the error?

@ledestin
Copy link
Author

https://github.com/ledestin/rails-bug-18859

URL of interest is /assets/uri.js. It works if I add uri symlink to uri.js.

@alex-grover
Copy link

Just tried this with the sample app - both /assets/uri and /assets/uri.js seem to work for me.

@ledestin
Copy link
Author

Maybe you're not using bundle exec? I can't think of another reason.

@rafaelfranca
Copy link
Member

This seems to be a sprockets issue. Could you open an issue there? Thanks.

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

No branches or pull requests

3 participants