Help with halm


How to transform this piece of code in haml

  • <%= image_tag(“book_picture.png”, :border => 0) %>Relatórios

    • G: Relatório PCS

    • I tried to something but is wrong, does not accept image_tag


      %a{:hreft => “#”}Relatorios

      = image_tag(“book_picture.png”)



  • Try putting Relatorios in a new line

    My problem is with the image_tag

    Some test I could do so

    %a{:href =>“/indeces”} Indeces


    You can use this to convert your html or erb code to haml.

    image_tag is an asset tag helper so might be on your setup or some error on the file/filename for haml not to recognized it.