ActiveRecord::StatementInvalid NO_GENERATED_KEYS

Your attr_accessor :title is messing things up. You do not need that for attributes defined in the database. Furthermore attributes are not stored in instance variables so doing @title = 'foo' is a waste of time

Fred