The Controller:
class SearchController < ApplicationController
def index
end
end
routes.rb
get "search/index"
from rake routes
search_index GET /search/index(.:format) search#index
when i try to go to http://localhost:3000/search i get a 404 page error…
Your routes should be:
change your
get "search/index"to: