What you can do is setter method in your User class
def full_name=(string) names = string.split
Then the form should refer to :full_name
as a field, and even if it is not an actual column, Rails will automatically get access to the above method and execute it, thereby updating the necessary columns.
source share