How can I make JavaScript and images on my remote HTML page be loaded from assets folder (or just any local resource)?...
the Rails Guides says:     If there are missing precompiled files in production you will get an   Sprockets::Helpers::RailsHelper::AssetPaths::AssetNotPrecompiledError   exception indicating the name of the missing file(s).   I do execute:  bundle ex...
Do you know a package manager for web assets?  I'd like something that can download libraries such as jQuery so I can plug them into my asset pipeline. The js.* python packages for fanstatic are close, but they pick a single "latest" vers...
There are 2 places where I can store javascripts: resources/assets/javascripts and public/js.  If we put the files in resources/assets/javascripts, we should add gulp tasks to copy them. And this is a weakness of this method. And we will need path ma...
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 CakePHP 2.4.7 and the TinyMCE plugin from CakeDC.  I set up my CakePHP core along with the plugin in a shared location on my server so that multiple applications can access it. This keeps me from having to update multiple copies of Tiny...
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...
I've been banging my head over this for a while, and am wondering if it's even possible to begin with. Thanks for any help with this!  The npm package  I've got an npm package which is basically a library of React components. This library...
I've got a Javascript library for AJAX file uploading that I need to include on only one page. Where is the best folder for this for file? app/assets/javascripts? vendor/assets/javascripts? lib/assets/javascripts? And then I need to be able to in...
I am in the middle of creating my first real Rails app, and I'm learning on the go. I have a situation where I need to create nested attributes on one form, and so have been looking at the railscast episodes relevant to that (196 and 197). In the...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.