I am trying to set CarrierWave\'s default url inside of the CarrierWave uploader. To do this, I would like to use the asset pipeline to do the following in uploaders/image_uploader.rb:
I have an app that has some categories: Tomato, Orange, Banana. Each category has it\'s own color saved in the database: FF0000, FF6600, FFFF00.
In ajax heavy applications having a javascript/coffeescript file that is aware of the routes in a rails application seems common and reasonable. Yet it is not easy access the url_for helper in your as
Testing my site in Internet Explorer (testing with IE 9 at the moment) I saw many things wrong but quite a few things that I thought shouldn\'t be wrong.
This question already has answers here: Closed 11 years ago. Possible Duplicate: How to disable logging of asset pipeline (sprockets) messages in Rails 3.1?
I want to put some user preferences in my JavaScript. Previously 开发者_开发知识库I\'ve done it by rendering my JavaSript file preferences.js.erb by controller via <%= javascript_link_tag ...>. How
When using asset pipeline in rails 3.1, it creates a default application.js: //= require jquery //= requir开发者_开发问答e jquery_ujs
I have certain page-specific js and css files that I either: Don\'t want running on development (ie tracking code)
I recently started working with Rails 3.1. It\'s a very nice framework and I like the \'asset pipeline\' philosophy. Adding libraries that exist
<%= stylesheet_link_tag \'application\', :debug => Rails.env.development? %> D开发者_如何转开发oesn\'t seem like its working. I think the asset is still being precompiled... I can verify t