erb
JQuery ERB template not inserting HTML
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:[详细]
2023-04-10 00:29 分类:问答Rails 3 ArgumentError: wrong number of arguments (3 for 1)
After migrate on Rails 3, I have error \"ArgumentError: wrong number of arguments (3 for 1)\" For line:[详细]
2023-04-09 05:00 分类:问答how to prevent sprockets from caching a .erb file?
Sprockets gem caches .erb files even though the ruby code in those might evaluate differently on every compilation[详细]
2023-04-09 04:31 分类:问答Use ruby array for a javascript array in erb. Escaping quotes
i\'ve foun开发者_如何学God numerous things online for this but they dont work for me. am i missing something.[详细]
2023-04-09 02:52 分类:问答Processing a file by two template handlers
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[详细]
2023-04-07 11:58 分类:问答Rails: erb + javascript question
Can I have conditional javascript in my show.erb.html files? Something like this: <%- if File.exists?(\"/leggle/data/tree_xml.开发者_运维百科xml\") %>[详细]
2023-04-05 02:30 分类:问答How can I access Rails objects in Sass?
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:[详细]
2023-04-05 01:48 分类:问答Nested form not working with has_many
I\'ve got a model Order class Order < ActiveRecord::Base has_many :order_details, :class_name => \"OrderDetail\"[详细]
2023-04-03 23:16 分类:问答comparison operators in js.erb files
I have a file called new.js.erb that contains this line: if( $(\'#user_password\').val().length < 6 )[详细]
2023-04-03 17:04 分类:问答Rails 3.1 Images Broken in Stylesheets
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[详细]
2023-04-03 07:35 分类:问答