From 08582fa66f47a1547bd9f02f2dba46578416bcac Mon Sep 17 00:00:00 2001 From: Espen Antonsen Date: Fri, 7 Mar 2014 13:33:01 +0100 Subject: [PATCH] search should use get and index method, not post to create album --- app/views/layouts/application.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 717a8b3c..b2e4498c 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -23,7 +23,7 @@

<%= link_to(if ENV['LOGO'] then image_tag(ENV['LOGO']) else (ENV['TITLE'] || "Photos") end, root_path) %>

- <%= form_tag albums_path, { :id => :search } do -%> + <%= form_tag albums_path, { :method => :get, :id => :search } do -%> <% end -%>