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:
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.
jobs_controller.rb: def create @job = Job.new(params[:job]) render \"preview\" if @job.save end preview.html.haml:
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.
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
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
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
I am using KnockoutJS which uses a json string within the data-bind attribute to indicate binding information. I also like using 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
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.