Skip to content

Instantly share code, notes, and snippets.

@rbrancher
Created December 10, 2012 18:26
Show Gist options
  • Save rbrancher/4252318 to your computer and use it in GitHub Desktop.
Save rbrancher/4252318 to your computer and use it in GitHub Desktop.

Separar em helpers

<%= attachment_container @album, :photos do |container| %>
  <div>
    <%= container.video_upload %>
  </div>

  <div>
    <%= container.image_upload %>
  </div>

  <div>
    <%= container.images_and_videos %>
  </div>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment