<% 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 %> <% # had to remove autofocus: true because when form was embedded at the bottom of a page, the browser would scroll all the way down to the field in the page. %> <%= f.input :email, label: 'Please enter your email address' %>
<%= f.button :submit, submit_message, :class => 'btn btn-primary' %> <% end %>