Creating a Simple Search in Rails 4 July 20, 2014 by Koren Leslie CohenIf you have a blog and you want the user to be able to search your posts, you will need to add methods to both your posts controller and post model, and create a corresponding search form.