I want to reproduce the haml code below by using the haml_tag method.
= %img { alt:'Hi' , src: 'hi.jpg' }
Can anyone help?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Nah.. I’ve just realized that. There it goes:
Attention to the details of
-instead of=.haml_tagmethod report directly to the haml model.Easier than I thought. 🙂