Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <% f.fields_for :small_icon do |small_icon_form| -%>
- <li>
- <%= small_icon_form.hidden_field :image_type, :value => "Small" %>
- <%= small_icon_form.label :source_file, "Small Icon (JPG, PNG, or GIF at #{Image.size_of(:browse_tv_module)})" %>
- <%= small_icon_form.file_field :source_file %>
- </li>
- <% unless small_icon_form.object.new_record? -%>
- <li>
- <%= small_icon_form.label :small_icon, "Current Small Icon" %>
- <%= image_tag small_icon_form.object.url(:browse_tv_module),
- :alt => small_icon_form.object.url %>
- </li>
- <% end -%>
- <% end -%>
Add Comment
Please, Sign In to add comment