Refactor FormHelper#search_form_for
Refactor FormHelper#search_form_for

- Extract code into smaller, private methods for readability and
maintainability.

- Avoid hidden conditionals and ternaries to keep conditionals as
explicit (and painful) as possible.

- Use Ruby 1.9+ hash syntax.

roman-franko/ransack,martndemus/ransack,laserlemon/ransack,outstand/ransack,Eric-Guo/ransack,johan--/ransack,guilleva/ransack,Mario245/ransack,reinteractive/ransack,AndrewSwerlick/ransack,activerecord-hackery/ransack,mariorcardoso/ransack,avit/ransack