Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

134
Vistas
Issue with Jquery.raty.js in Rails 6

I have 4 files in app/javascript/packs:

application.js
jquery-3.4.0.min.js
jquery.raty.js
main.js

To the layout I have added:

<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
<%= javascript_pack_tag 'application', 'data-turbolinks-track': 'reload' %>
<%= javascript_pack_tag 'main', 'data-turbolinks-track': 'reload' %>

and it works fine, but jquery.raty.js doesn't load.

I tried rake assets:precompile, but it still doesn't see jquery.raty.js, but it sees main.js, my custom js file.

WHat is the issue with it?

I tried

<%= javascript_include_tag 'jquery.raty.js', "data-turbolinks-track" => false %>

but it shows error: The asset "jquery.raty.js" is not present in the asset pipeline. I even added

Rails.application.config.assets.precompile += %w( jquery.raty.js ) 

to the asset, but it shows the same error.

3.0.0 :001 > Rails.application.config.assets.precompile => ["manifest.js", "jquery.raty.js"]


FOUND SOLUTION with <%= javascript_pack_tag 'jquery', 'data-turbolinks-track': 'reload' %>

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda