Had to make :created_by_id attr_accessible in order to set it with mass assignment, i.e. via params