jwhitley / requirejs-rails

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

undefined method requirejs_include_tag #252

Open mbajur opened 8 years ago

mbajur commented 8 years ago

Hello! I have just installed requirejs-rails and i have a problem with view helper requirejs_include_tag. Basically, when i'm trying to use it in my layout file, i'm getting:

undefined method `requirejs_include_tag' for #<#Class:0x007f971db14390:0x007f971fbe25b8>

All i've done was add a gem, bundle install and server restart. The only abnormal thing that comes to my mind is the fact that this layout file belongs to mountable engine.

Rails 4.2.1
requirejs-rails master
ruby 2.2.1

Any help much appreciated.

carsomyr commented 8 years ago

@mbajur Sorry for the belated reply. Have you tried a layout file not from an engine?