jquery.turbolinks file not found
Closed this issue · 8 comments
After following all the instructions i am getting this error
"Sprockets::FileNotFound in StaticPages#home
Showing /home/abhinay/rails_projects/sample_app/app/views/layouts/application.html.erb where line #9 raised:
couldn't find file 'jquery.turbolinks'
(in /home/abhinay/rails_projects/sample_app/app/assets/javascripts/application.js:16)
"
can you please tell me what is Happening here.
Please show what is inside of your application.js
On Oct 17, 2013, at 4:09 PM, Abhinay Kumar notifications@github.com wrote:
After following all the instructions i am getting this error
"Sprockets::FileNotFound in StaticPages#home
Showing /home/abhinay/rails_projects/sample_app/app/views/layouts/application.html.erb where line #9 raised:couldn't find file 'jquery.turbolinks'
(in /home/abhinay/rails_projects/sample_app/app/assets/javascripts/application.js:16)"
can you please tell me what is Happening here.—
Reply to this email directly or view it on GitHub.
Content of application.js
// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
//
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// compiled file.
//
// Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
// about supported directives.
//
//= require jquery
//= require jqurey.turbolinks
//= require jquery_ujs
//= require bootstrap
//= require turbolinks
//= require_tree .
Well i think some time , problem looks bigger then actually it is and its solution makes us Laugh cause just found my answer here.
I have restarted my Rails application and Done..it is now working..By the way thank you soo much for making such a helpful gem .. 👍
@abhinay302 thank you!
I had this issue, and what was happening for me was that I had the jquery gems in an :assets
group in my Gemfile, which I shouldn't have had.
Once I removed it...everything was gravy.
Hope that helps someone else.
I was having this problem. Adding resources in this exact order fixed it for me.
My applications.js file
header etc
//= require jquery
//= require jquery.turbolinks
//= require jquery_ujs
//= require bootstrap
//= require turbolinks
//= require masonry/jquery.masonry
//= require_tree .
@abhinaykumar THANKS, I needed to restart the application too, kinda laughing too
restart your server