<%= form_for(:sign_out, :html => {:id => "sign_out_form"}) do |f| %> <%= f.submit "Sign out", :id => "sign_out_form_submit" %> <% end %>