Skip to content

Commit

Permalink
search should use get and index method, not post to create album
Browse files Browse the repository at this point in the history
  • Loading branch information
espen committed Mar 7, 2014
1 parent 93ad102 commit 08582fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<h1>
<%= link_to(if ENV['LOGO'] then image_tag(ENV['LOGO']) else (ENV['TITLE'] || "Photos") end, root_path) %>
</h1>
<%= form_tag albums_path, { :id => :search } do -%>
<%= form_tag albums_path, { :method => :get, :id => :search } do -%>
<input type="text" name="q" class="textfield"/>
<input type="submit" value="Search" class="button" />
<% end -%>
Expand Down

0 comments on commit 08582fa

Please sign in to comment.