I know how to remove whitespace in HAML.
%img<
%img<
%img
But how do I get the same effect if I use ruby code?
= image_tag
= image_tag
Thanks.
Sam
I know how to remove whitespace in HAML.
%img<
%img<
%img
But how do I get the same effect if I use ruby code?
= image_tag
= image_tag
Thanks.
Sam
What not just do this?
= image_tag + image_tag
Not ideal, but you could also wrap in a span tag in order to use >
%span>= image_tag
%span>= image_tag
In some cases (for example, text after image) can help interpolation:
#{image_tag 'image.png'}text