mirror of
https://github.com/fspc/BikeShed-1.git
synced 2026-09-16 16:31:38 -04:00
Registration form now remembers field values for nested form errors
This commit is contained in:
@@ -18,7 +18,8 @@
|
||||
%br/
|
||||
= f.email_field :email
|
||||
%div
|
||||
= f.fields_for :user_profiles, UserProfile.new do |builder|
|
||||
- profile_builder = resource.user_profiles.empty? ? resource.user_profiles.build : resource.user_profiles
|
||||
= f.fields_for :user_profiles, profile_builder do |builder|
|
||||
= render 'user_profile_fields', f: builder
|
||||
%div
|
||||
= f.label :password
|
||||
|
||||
Reference in New Issue
Block a user