refactored search

This commit is contained in:
albert
2013-01-10 17:45:52 -05:00
parent 13271e9bf5
commit 8749c43b3e
85 changed files with 946 additions and 304 deletions

View File

@@ -3,12 +3,9 @@
<h1>Search Artists</h1>
<div id="search-form">
<%= simple_form_for(@search) do |f| %>
<%= f.input :name_contains, :label => "Name", :required => false %>
<%= f.input :other_names_match, :label => "Other Names", :required => false %>
<%= f.input :group_name_contains, :label => "Group Name", :required => false %>
<%= f.input :url_match, :label => "URL", :required => false %>
<%= f.button :submit, "Search" %>
<%= form_tag(artists_path, :method => :get, :class => "simple_form") do %>
<%= search_field "name" %>
<%= submit_tag "Search" %>
<% end %>
</div>
</div>