In Gemfile i got gem ‘jquery-rails’, if i commented it the following line doesn’t work. I get routing error.
<%= link_to('Logout', destroy_user_session_path, :method => :delete) %>
But if i uncommented gem ‘jquery-rails’ the logout link works.
But i don’t see any javascript file in app/assets named ‘jquery-rails’. Where is this file located ?
How is this file called and how it works.
The file is in the jquery-rails gem and will be referenced in your application.js manifest.
The actual jquery code will be in a folder in the gem source tree.
Rails 3.1 allows gem authors to make files available to the asset pipeline, and these are included in the Rails pipeline path at startup.