Created
March 17, 2012 06:51
-
-
Save raedatoui/2055870 to your computer and use it in GitHub Desktop.
active admin tricks
This file contains 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
index do | |
column :image, :sortable => :image do |model| | |
if model.image.to_s.nil? | |
raw('—') | |
else | |
raw('✓') | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment