jwhitley / requirejs-rails

RequireJS support for your Rails 3 or 4 application
MIT License
592 stars 202 forks source link

"Only one requirejs_include_tag allowed per page." false trigger #218

Closed AdnanTheExcellent closed 8 years ago

AdnanTheExcellent commented 9 years ago

I am encountering a very weird issue and I'm not sure why its happening. I have a development VM that uses ubuntu 14.04, ruby 2.0.0-p576, rails 4.0.0, and requirejs-rails 0.9.5. Heres is whats going on:

I can run the tests fine on my VM. everything passes. When i create a headless VM via vagrant (same versions as above), i keep getting the error "Only one requirejs_include_tag allowed per page." when i run my tests. I have exactly 1 instance of requirejs_include_tag in my code in my _header.html.erb file which i know is not rendered more than once per page.

I can run the server in development on both VMs no problem without getting the error.

Any idea why this error is happening?

carsomyr commented 9 years ago

@AdnanTheExcellent Since this is all in some sort of stateless Rails controller, I'd suggest that you dump the backtrace of the requirejs_include_tag.

carsomyr commented 8 years ago

@AdnanTheExcellent Closing for now. Let me know if this is still occurring.