Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Rails.application.routes.draw do
- root "animals#index"
- resources :animals
- resources :animals do
- #get 'search/:q', :action => 'search', :as => 'search'
- get "animals/search" => "animals#search"
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement