You might have got your answer,though these are some points might help you
form_for
with class name in haml:
= form_for @patient, :html => {:class => "form-horizontal"} do |f|
it can also be written as
= form_for @patient, {:html => {:class => "form-horizontal"}} do |f|
but it couldn't be written as
- form_for @patient, :html => {:class => "form-horizontal"} do |f| #it gives error.
Hope it helps!