.class1{:class => ("gray" unless post.published?)}
%div{class: ["class1", ("gray" unless post.published?)]}
%div{class: post.published? && 'gray' }
Last active
August 29, 2015 14:11
-
-
Save maxivak/e0cee158eb2f1c892cff to your computer and use it in GitHub Desktop.
Rails HAML Examples
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment