<%= form_for record, :url => admin_session_path(:return_to => params[:return_to]), :method => :post do |f| %>
<%= f.submit 'Login' %>
<% end %>