Rails search functionality
问题 I am taking a rails class at my University and I am trying to create a search form which will show the results on the same page rather than show a different page of results. Is this something simple to do? I am creating a museum app with artifacts for each museum but I want the user to search artifacts from either page. On my routes.rb I have resources :artifacts do collection do get 'search' end end On my museum index I have the code below that he gave us but not sure how to tweak the get