<%= simple_form_for( resource, url: resource.new_record? ? registration_path(resource_name) : user_path(resource), method: resource.new_record? ? :post : :put, wrapper: :horizontal_form, html: { class: 'form-horizontal', autocomplete: 'off' } ) do |f| %> <%= devise_error_messages! %> <%= f.input :name %> <%= f.input :first_name %> <%= f.input :last_name %> <%= f.input :email %> <%= f.input :password %> <%= f.input :password_confirmation %>
<%= recaptcha_tags if resource.new_record? && (Rails.env == 'production' || Rails.env == 'development') %>
<%= f.button :submit %>

<%= render 'devise/shared/links' if resource.new_record? %>
<% end %>