I'm new in Ruby and in ROR framework. I try to create web app with JQuery. My steps are:
- Added gem 'jquery-rails' and executed bundle install command from command line
- String
//= require jquery2
added into application.js file - Now I try include file into page. And I added in section string
<%= javascript_include_tag "application" %>
into application.html.erb file
when I try to see page in browser I see error with message:
Sprockets::Rails::Helper::AssetNotFound in LandingPage#index
The asset "application.js" is not present in the asset pipeline.
<%= javascript_include_tag "application" %>
What I doing wrong? I googled about this error, but I didn't found anything good explained.