Category "haml"

Options_from_collection_for_select - NoMethodError Or ArgumentError - how add properly argument?

In Rails console when I write Something like: City.human_attribute_name("model") it's work correctly, a return value, but when I try to use it in .haml in Optio

Symmetrically clean expanded (one-item-per-line) arrays in HAML?

I'm trying to figure out if there's some way to make the following code both visually "clean" and also easily sortable so each line with an array item has one a

Adding a default null value to a select tag

I currently have this line of code: =select_tag :resource_id, options_for_select( Resource.find(:all, :conditions => "resourcetype = 'data-sheets' &&