Contact form: error on seeding and error messages of the form don't work properly
问题 The app I'm building includes a contact form. On seeding it generates an error message that I don't understand: ActiveRecord::StatementInvalid: PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (1, null, null, null, 2015-06-06 13:43:12.339477, 2015-06-06 13:43:12.339477). : INSERT INTO "messages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" Below is the relevant code for the form. If I remove the line attr