haml
form with errors massage in HAML rails3
I `m change .erb files in .haml. I have such a form: <% form_for :ticket do |f| %> <% if @ticket.errors.any? %>[详细]
2023-03-21 14:48 分类:问答Better way to use Ruby/Sinatra to pass data to Highcharts?
I\'m generally of the opinion that if it ain\'t broke don\'t fix it, but my current solution to this issue (though it does work) seems really ugly. I am using Ruby, Sinatra, Haml, and Highcharts, and[详细]
2023-03-21 04:57 分类:问答a difference between an .erb and .haml in the form data
I have an .erb script, which works: <% form_for :ticket do |f| %> <% if @ticket.errors.any? %>[详细]
2023-03-20 20:51 分类:问答Can you interpolate ruby variables within HAML css?
I need a series of classes, .module1, .module2, ... module(n). I also want to define those classes using css, ruby and HAML:[详细]
2023-03-19 06:56 分类:问答haml display address
album/show.html.haml #comment_list= render :partial => \'shared/comments\', :locals => { :commentable => @album }[详细]
2023-03-18 22:48 分类:问答Subtle difference in how HAML handles render method with block in Rails templates
I stumbled across what looks to be an inconsistency in how HAML handles the render method in Rails. Example 1 in ERB:[详细]
2023-03-18 21:27 分类:问答Sinatra/Haml: How to execute Ruby code inside Javascript?
I\'m writing a Sinatra + Haml app, and in my Javascript code, I want to be execute some Ruby. In开发者_运维百科 erb, the following works:[详细]
2023-03-18 20:53 分类:问答simple_form_for error: wrong number of arguments (3 for 2), in rails 3
I am getting wrong number of arguments (3 for 2) error for simple_form_for tag in rails 3 (with haml).[详细]
2023-03-18 16:58 分类:问答rails 3 pass params into partial with haml and unobtrusive javascript
How to pass params into partial with haml and unobtrusive javascript comments/create.js.haml $(\"#comment_list\").html(\"#{escape_javascript( render(:partial => \"shared/comments\", :locals =>[详细]
2023-03-18 11:29 分类:问答Convert Haml to HTML without evaluating inline Ruby script
I need to convert Haml scripts to their equivalent HTML scripts. As I\'m doing this o开发者_JAVA百科utside and without running the main rails project, the Ruby scripts present in the Haml files are th[详细]
2023-03-17 04:04 分类:问答