% form_for @advertisement, :html => {:multipart => true} do |f| %>
| <%= submit_tag "Submit" %> | |
| <%= f.label :file %> | <%= f.file_field "file" %> |
|---|---|
| <%= f.label :referral_url %> | <%= f.text_field :referral_url %> |
| <%= f.label :ad_type %> | <%= f.select :ad_type, ["vertical", "horizontal"] %> |
| <%= f.label :status %> | <%= f.select :status, ["active", "inactive"] %> |