I don’t understand why my model (attached) isn’t working.
I generated a scaffold for my ‘player’ data. If I uncomment the
:validates_presence_of check in my model, the save on the ‘new’ page
compalins about those fields, and re-displays them without the data I’ve
typed in (along with the red surrounding and error messages, of course).
If I run the model as is, the save goes through, but none of the fields
except hashed_password get saved. Or, another way to put it is, the
only field that gets saved is the one I set manually in the
I don’t understand what I did. I haven’t changed the generated view for
new.html.erb, the column names haven’t changed in the database. I don’t
see what’s missing to reconnect those elements.