I have a problem with the editing section of my site. For some reason, I continue to receive the error message "Current password cannot be empty" when I try to change the user. We use the utility to manage users, but I can not find the code anywhere that could cause this error.
Here is the code for the form:
- semantic_form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :method => :put }) do |form| = devise_error_messages! = form.semantic_errors = form.input :first = form.input :last = form.input :birth_year, as: :select, collection: User.birth_range.to_a.reverse %i= t('users.edit.cast_biometrics_hint') = form.input :gender, as: :select, collection: gender_options, include_blank: false = form.input :eye_color, as: :select, collection: eye_color_options, required: false = form.input :hair_color, as: :select, collection: hair_color_options, required: false = form.input :ethnicity, as: :select, collection: ethnicity_options, required: false %li.select.optional
source share