How to write it in HAML?
<a class="pull-left" href="#"> <img class="media-object" data-src="holder.js/64x64"> </a>
I tried this, but this failed:
=link_to "#", :class => "pull-left =image_tag "64x64.gif", :class => "media-object"
This is the correct path in HAML (note the do at the end of the link_to line):
do
link_to
= link_to "#", :class => "pull-left" do = image_tag "64x64.gif", :class => "media-object"
Source: https://habr.com/ru/post/1492834/More articles:Invalid API key issue when trying to upload image via Imgur API - javascriptHow to make maven run only JMeter tests (no other life cycles) - mavenDeploy Meteor on CDN or S3 - amazon-s3repeating arithmetic in Python - pythonscope and benefits of implicit parameter request in scala action action? - scalaCross-compiling Apache Thrift for armhf - cross-compilingUsing xpath to retrieve data from an XML column in postgres - xmlWebAPI - Does the Routing Attribute Abort DELETE Using WebAPI Cors? - .netHow to compile savings for ARM - armComplete list of layout classes in Bootstrap? - twitter-bootstrapAll Articles