I'm new to the Rails framework, and my boss tells me that I need to code in HAML, not HTML, so I got stuck trying to figure out how to convert html.erb code to HAML. My problem is that I have the following code for the button:
<%= button_to 'Add to Cart', line_items_path(:product_id => product) %>
This button adds the product to the position, can anyone suggest how to write the above code in HAML?
source
share