Skip to content

Instantly share code, notes, and snippets.

@danbeaulieu
Created November 28, 2012 03:03
Show Gist options
  • Save danbeaulieu/4158773 to your computer and use it in GitHub Desktop.
Save danbeaulieu/4158773 to your computer and use it in GitHub Desktop.
= f.fields_for :product_images do |image_fields|
- if image_fields.object.new_record?
= image_fields.file_field :image
- else
%span
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment