Uncaught ReferenceError: $ is not defined rails

前端 未结 7 2227
后悔当初
后悔当初 2021-01-11 11:08

I\'m trying to add Froala editor to my project.

Problem only on production server(on localhost it works fine) I\'m using rails 4.1.0 In gemfile i\'m have

<         


        
7条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-11 11:15

    try switching these lines:

    <%= javascript_include_tag "vendor/modernizr" %>
    <%= javascript_include_tag "application" 'data-turbolinks-track' => true %>
    

    will become

    <%= javascript_include_tag "application" 'data-turbolinks-track' => true %>
    <%= javascript_include_tag "vendor/modernizr" %>
    

提交回复
热议问题