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...
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...
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...
My TLDR; version of my question is "Is there a way I can integrate with qunit such that Dalek can get the correct context when it needs it, or conversely, can I get Dalek to run setup/teardown asset-pipeline-compiled Ember javascript to build a c...
I have been working on a ruby on rails project just now. I have created a controller named 'animals' and a view (index.html.erb) for index action. I don't want to include 'application' javascript file.   So I created animals.js  T...
On rails I put all the JavaScript files into application js file.   //= require jquery //= require jquery_ujs //= require dropzone //= require jquery.cookie //= require toastr  //VENDOR JS BEGINS //= require pace/pace.min //= require modernizr.custom...
I am using turbolink (rails4) and following js link gets generated by application.js file in my pages header section  <script data-turbolinks-track="true" src="/assets/jquery.js?body=1"></script> <script data-turbolinks...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.