だめ
- form_for @search_form, url: books_path, html: {method: :get} do |f| %p = f.search_field :q = f.submit 'Search'
OK
= form_for :search, :url => books_path, :html => {:method => :get} do |f| = f.text_field :keyword = f.submit "Search", :class => "button submit"