Created
September 10, 2013 12:53
-
-
Save itsterry/6508969 to your computer and use it in GitHub Desktop.
How we like to put image upload on the page at the moment
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
=simple_form_for event do |f| | |
=f.input :asset_attachment, :as=>:file,:label=>"Image" | |
=f.input :asset_attachment_remove, :as=>:boolean, :label=>'Remove' if event.asset | |
=nice_asset(event.asset,:thumb95x95) | |
=f.input :asset_attachment_title,:label=>"Image Description", :input_html => {:value=>(event.asset ? event.asset.title : "")} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment