Possible Duplicate:
Naming Boolean columns in Rails
What is the rails convention regarding names of boolean fields?
For example, if I have a User model that needs a flag for its “activeness”, should I call the db field is_active or active ?
Note: Rails automatically generates question-marked methods for accessing boolean fields: User.is_active? and User.active?.
The plain-adjective form is easily the norm in Ruby and Rails —
even?,nil?,empty?andblank?for example. The only method of the formis_#{something}?that I can think of isKernel#is_a?to determine class identity. So to stick with standard naming conventions, I would leave off theis_on boolean methods like this.