haml
how to render a helper
I\'ve built a helper which returns the string which I supposed to insert into HTML. I\'m using Haml, so html.haml file has this line:[详细]
2023-04-06 11:58 分类:问答Dynamically adding elements to a form
My goal is to have a form where I fill in some details and then I can hit \'add question\' which is a link that should dynamically add a question.[详细]
2023-04-05 05:11 分类:问答Ruby on Rails doesn't render partial
jobs_controller.rb: def create @job = Job.new(params[:job]) render \"preview\" if @job.save end preview.html.haml:[详细]
2023-04-04 08:21 分类:问答show background-image based on screen resolution almost works
I\'m trying to use 3 different size images for a full-screen background; one image for each of 3 different screen resolutions. It works except on initial load.[详细]
2023-04-04 07:25 分类:问答Haml rendering error on production
I\'m writing a Rails 3 application on Mac OSX and it runs fine under both development and production.When I deploy the app with Passenger I get a error in one of my views.This is how the view looks li[详细]
2023-04-04 03:57 分类:问答add additional class to render partial
I\'m looking for some help regarding partials. I have created a partial for a menu on my site, but I would like to know whether I can add an additional class to a partial. More specifically, I am look[详细]
2023-04-02 18:52 分类:问答Sinatra Haml: Access object attributes
I´m new to sinatra and haml. I am writing a simple todo application. In the controller I am creating a list of todo-Objects. Every todo has for example the attributes \"title\" and \"priority\". The[详细]
2023-04-01 19:09 分类:问答Multi-line attribute values in HAML
I am using KnockoutJS which uses a json string within the data-bind attribute to indicate binding information. I also like using HAML.[详细]
2023-04-01 15:01 分类:问答Using ruby variable for class name in HAML
I have the piece of code where I am trying to use a variable for a class name in HAML. Here it is: - data_table(@installation_requests, nil, {:placeholder => \'\'}) do |installation_request, css_c[详细]
2023-04-01 13:30 分类:问答How can I conditionally wrap some HAML content in a tag?
How can I use a condition to decide whether to output a surrounding tag in HAML? I\'m trying to create the DRY version of the code below.[详细]
2023-04-01 10:29 分类:问答
加载中,请稍侯......