Created
August 8, 2011 09:01
-
-
Save helloluis/1131442 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<p class="<%= @article.toggled? ? "hidden" : "visible" %>">blah</p> |
evansagge
commented
Aug 8, 2011
p class="#{@article.toggle? ? 'hidden' : 'visible'}" blah
simple_form with slim
= simple_form_for [:admin, @post], :html => { :class => 'extra'} do |f|
= f.error_notification
.inputs
= f.input :title, :input_html => { :class => 'extra' }
= f.input :content, :as => :text, :input_html => { :class => 'extra' }
= f.input :tags, :input_html => { :class => 'extra' }
.actions
= f.button :submit
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment