For me, the second error you described in the comments, i.e. Uncaught TypeError: Cannot read property 'first_user[name]' of undefined
, apparently was caused by the transposed form identifier.
There is a problem with ClientSideValidation:
https://github.com/bcardarella/client_side_validations/issues/325
Adding html => { id: 'user_new' }
to the form_for
call solved the problem. Now I call a method like this (modified from the original Devise template):
<%= form_for(resource, :as => resource_name, :validate => true, :html => { id: 'user_new' }, :url => registration_path(resource_name)) do |f| %>
NTN.
source share