Top "Haml" questions

HAML is a markup language that’s used to cleanly and simply describe the HTML of any web document without the use of inline code.

How to Show Error Messages Next to Field

I have a form with input fields/labels etc. How do I get the error message to show up next …

ruby-on-rails devise haml
How to insert special HTML-symbols with HAML

When I'm saying: %p= item.price + " dollars" I'm getting 50&nbsp ;dollars instead of having non-breakable space symbol. …

ruby-on-rails-3 special-characters haml
How to do data- attributes with haml and rails?

I can have %a{href: '#', data_toggle_description_length: 'toggle_me_ajax'} which it gives me underscores not …

ruby-on-rails ruby-on-rails-3 haml custom-data-attribute html5-data
how do I create a table using loops and haml with ruby?

I'm trying to make an html table that looks like this: 1 2 3 4 5 1 2 3 4 5 1 2 3 4 5 My data structure is like this: @f_ary = [ 1..250] Here's …

ruby-on-rails haml
How do I make dynamic ids in Haml?

#item creates a div with id="item" .box#item creates a div with class="box" and id="item" .box#="item "+…

ruby-on-rails haml
Inline ruby in :javascript haml tag?

Hey is there a way I can do this in haml? :javascript var Tab = <%= @tab %> I could just …

javascript ruby-on-rails ruby haml
What is the best way to check if an attribute exists and is set?

I have a common view that lists two different models. The only difference is that when setting the link_to …

ruby-on-rails ruby haml
HAML using links in text without newline

I'm currently developing a little Sinatra Ruby app. For the presentation layer I'm using HAML, which works quite well. However …

html sinatra haml
Rails form (select/option) - how to mark selected option with HAML?

What's the quickest and most elegant way to mark currently selected option value in the form in HAML? %form{:action =&…

ruby-on-rails forms select haml option
Rails and haml, how to add id and class selectors to link_to helper?

I've been looking around how to add an id selector to a link_to helper using haml, is that possible? …

ruby-on-rails-3 haml