From 20d97d1b4db654efe82da009bb3aa8beb3b914fd Mon Sep 17 00:00:00 2001 From: Andreas Stephanides Date: Sat, 8 Feb 2014 16:40:20 +0100 Subject: [PATCH] search route fix --- config/routes.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config/routes.rb b/config/routes.rb index 0a0bc74..84bd181 100755 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,7 +1,9 @@ Fetsite::Application.routes.draw do themes_for_rails devise_for :users, :controllers => { :omniauth_callbacks => "users/omniauth_callbacks" } - resources :home, :only=>[:index] + resources :home, :only=>[:index] do + get :search, :on=>:collection + end #get 'home',:controller=>home,:action=>:index,:as=>"home_index" scope '(:locale)/admin' do resources :users, :only=>[] do