I\'m running Rails version 5.2.4 Here is the relevant part of my view in Ruby on Rails
-
There are two potential issues with your application.js
.
The following lines use // =
(notice the space) instead of //=
. The Rails guide The Asset Pipeline - 2.4 Manifest Files and Directives specifically states to use //=
.
// = require jquery
// = require jquery_ujs
If Fomantic-UI depends on jQuery to be present you should require it after loading jQuery. Otherwise it tries to register itself as jQuery extension or use jQuery methods without jQuery being loaded.
This means moving:
// Loads all Semantic javascripts
//= require semantic-ui
Below:
// Load jquery
//= require jquery
//= require jquery_ujs
讨论(0)