To my understanding, all of your JavaScript gets merged into 1 file. Rails does this by default when it adds //= require_tree . to the bottom of your application.js manifest file.   This sounds like a real life-saver, but I am a little concerned ab...
Is there any way to use a Rails helper method, more specifically, a path helper method within a javascript asset file. This file foo.js.coffee.erb  $('#bar').val("<%= create_post_path %>")   I would love it if I could get from...
I'm starting a new project in Rails, and it looks like the application.js manifest file is doing something funny with the javascripts that I reference - does it cache those files as part of the asset pipeline?  Here's what happened. I added a...
In my application.js file, I have:  //= require jquery //= require jquery_ujs //= require underscore //= require backbone //= require_tree . // //= require .//community_app // //= require_tree ../templates/ //= require_tree .//models //= require_tree...
Here's what I'm looking for:   I want to use the wonderful features of SIMPLE mode minification while disabling just one specific feature (disable local function inline).      UPDATE: The answer is NO, it's not possible given my setup. Bu...
I've got several rails 3.1 apps, and I'm having this problem in all of them.  I have a bunch of js files that get included in my application.js file. Here's my application.js:  //= require jquery //= require jquery-ui //= require jquery_u...
I'm developing a gem and I've installed Jasmine https://github.com/pivotal/jasmine-gem/  All of my required JS files are in my manifest file at app/assets/javascripts/application.js  //= require underscore //= require backbone  //= require_tr...
I'm using Rails 4. I have a javascript file, app/assets/javascripts/exotic_fonts.js, which adds some javascript functionality to fonts. When I load the homepage this javascript file is automatically loaded on the homepage, however it's not lo...
My question is similar to some other questions here which still didn't provide an answer for my situation  I am including jQuery gem in my app in Gemfile:  gem 'jquery-rails'   And in application.js:  //= require jquery //= require jquery...
I'm using rails 4 with foundation 5 and I'm having trouble getting javascript to work. Foundation's navbar menu doesn't drop down in mobile and I'm having trouble getting the jQuery datepicker to work. After a bit of searching on...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.