automatically identify ad type
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
<%= simple_form_for @advertisement, :html => {:multipart => true} do |f| %>
|
||||
<%= f.input :file, :as => :file %>
|
||||
<%= f.input :referral_url %>
|
||||
<%= f.input :ad_type, :collection => %w(vertical horizontal) %>
|
||||
<%= f.input :referral_url, :as => :string %>
|
||||
<%= f.input :status, :collection => %w(active inactive) %>
|
||||
<%= f.button :submit %>
|
||||
<%= f.button :submit, "Submit" %>
|
||||
<% end %>
|
||||
@@ -1,4 +1,4 @@
|
||||
<% content_for(:secondary_nav_links) do %>
|
||||
<% content_for(:secondary_links) do %>
|
||||
<menu id="secondary-links">
|
||||
<li><%= link_to "Listing", advertisements_path %></li>
|
||||
<li><%= link_to "New", new_advertisement_path %></li>
|
||||
|
||||
Reference in New Issue
Block a user