Add format option to search_form_for

I wanted to use the format option, but it was not supported.
So I try to fix.