<% submit_message = 'proceed' if submit_message.blank? %> <%= simple_form_for User.new, url: parse_email_path, html: { id: 'email-input-form' }, remote: true, method: 'post' do |f| %> <%= f.error_notification %> <%= f.input :email, autofocus: true, label: 'Please enter your email address' %>
<%= f.button :submit, submit_message, :class => 'btn btn-primary' %> <% end %>