Re: [Rails] javascript_include_tag and custom js files

2016-07-10 Thread 'krfg' via Ruby on Rails: Talk
I past and copy below the content of my application.js file. The lines '//= require jquery' and '//= require jquery_ujs' should assure that the jquery and jquery-ujs files provided by jquery-rails gem will be added to the asset pipeline and available for use. "The require_tree directive tells Sp

Re: [Rails] javascript_include_tag and custom js files

2016-07-10 Thread Walter Lee Davis
> On Jul 10, 2016, at 8:43 AM, 'krfg' via Ruby on Rails: Talk > wrote: > > The default setting in my application.html.erb is: > > <%= stylesheet_link_tag 'application', media: 'all', > 'data-turbolinks-track': 'true' %> > <%= javascript_include_tag 'application', 'data-turbolinks-track':

Re: [Rails] javascript_include_tag and custom js files

2016-07-10 Thread Hassan Schroeder
On Sun, Jul 10, 2016 at 5:43 AM, 'krfg' via Ruby on Rails: Talk wrote: > I therefore planned to put all the javascript (jQuery and bootstrap) for my > application in custom.js inside app/assets/javascript. > Would rails automatically load this file or am I expected to explicitly tell > rails to l

[Rails] javascript_include_tag and custom js files

2016-07-10 Thread 'krfg' via Ruby on Rails: Talk
The default setting in my application.html.erb is: <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'true' %><%= javascript_include_tag 'application', 'data-turbolinks-track': 'true' %> I have a cusom.css.scss file in app/assets/stylesheets which is included as