I\'m a beginner at JQuery/JS and am trying to implement a dependent drop-down list in a Rails 3.1 app. I have the following form:
After migrate on Rails 3, I have error \"ArgumentError: wrong number of arguments (3 for 1)\" For line:
Sprockets gem caches .erb files even though the ruby code in those might evaluate differently on every compilation
i\'ve foun开发者_如何学God numerous things online for this but they dont work for me. am i missing something.
I\'m using Rails 3.1 and I\'m trying to process a file with two template handlers. Well, I have registered a new template handler for .scss files. Noww开发者_如何学Goant to process files like this on
Can I have conditional javascript in my show.erb.html files? Something like this: <%- if File.exists?(\"/leggle/data/tree_xml.开发者_运维百科xml\") %>
In a Rails 3.1.0 project, I have Companies with a few customizable attributes like background_color and link_color. I want to be able to set some Sass variables like so:
I\'ve got a model Order class Order < ActiveRecord::Base has_many :order_details, :class_name => \"OrderDetail\"
I have a file called new.js.erb that contains this line: if( $(\'#user_password\').val().length < 6 )
I\'ve been running a small application that I originally wrote under Rails 3.1.0.rc4. Last night I began the transition to 3.1.0 final. Well I hit a frustrating snag in the asset pipeline. My js is fi