Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

131
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!