My app has several different forms for creating user accounts and currently they all collect
last_name as separate fields but I’d like to change to a more human-friendly format of
full_name then split into two parts in the backend.
What are the Rails/Ruby idiomatic way to do this? I’m interested in hearing different methods.
I would need to validate the two fields before saving, of course, but also I’d like to be able to do some kind of on-page validation of the
full_name field to detect any potential problems with splitting, like multiple spaces in the name, and display a message to the user before the form is submitted.