<% form_remote_tag(
:url => contexts_path,
:method => :post,
:html=> { :id => 'context-form', :name => 'context', :class => 'inline-form'},
:before => "$('context_new_submit').startWaiting()",
:complete => "$('context_new_submit').stopWaiting()",
:condition => "!$('context_new_submit').isWaiting()") do -%>
<%= error_messages_for('context') %>
<%= text_field( "context", "name" ) %>
<%= check_box( "context", "hide" ) %>
<% end -%>