A search form is quite different than other forms, this is because it does not deal with model’s attributes. See a good way to add a simple search form in this episode.

Read more at the source