Using coffeescript, jQuery, and sprockets in rails 3.1 the coffeescript files are compiled in to blocks like:  (function() {  var a;  var b;  var c;  foo = function() {    alert("foo");  }  bar = function() {   alert("bar");  }  }).ca...
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...
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...
I'm using browserify-rails and I'm trying to get sprockets to preprocess a file that contains a sprockets directive, so that when I require() it using browserify, it will contain the generated JavaScript.  The sprockets directive tries to inc...
In Rails 3 (Sprocket), is there a way to load a javascript file using a url to a remote site? For example, I want something similar to this in your .js file using the require directive,  //= require http://example.com/remote_file.js...
So, I just realised that I have absolutely no Idea what Sprockets are in rails.  when using either bootstrap, or materialize, it is requested to include the sprocket (bootstrap-sprocket or materialize-sprocket) in the application.js file.  Everything...
I'm trying to use Sprockets to combine and minify my JavaScript and CSS files outside of the Rails and Rack context. So far, I'm able to combine them into a single file, but now I'm trying to run the JS compressor and the CSS compressor o...
I'm working with Symfony 2 with Twig and assetic file manager. I have high number of javascript files that have many dependencies. (Javascript prototypal inheritance)  I saw sprockets in action, and I see that assetic has also sprocketsfilter to...
My project was builded in Rails 2 and was upgraded to Rails 3.1, so I'm having troubles with the assets pipeline configuration, such as precompile.  I'm using app/assets/aplication.js like:   //= require jquery  //= require jquery_ujs   My ap...
The goal  Call UserModel within AuthenticationView with Backbone + Sprockets.  The problem  I just don't know a good way to do that.  The scenario  This is my view (assets/js/views/AuthenticationView.js):  var AuthenticationView = Backbone.View.e...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.