You can do this in the controller, but I'd advise against this.
Why? Business logic is best located and/or managed by the model. The
easiest way to do this would be to modify the database column to set a
default value, which Active Record will read when it looks at the
table structure and use this to set default values.
For example, if you had a migration for a new field, you could do the following:
If we had a Team model, when we did Team.new, we'd see that there
would be a default value already set for the active attribute.
As mentioned, this would be the simplest method and would keep the
business logic located in the realm of the model. Keep controller code
short and sweet.