ben7th/vote — comment on commit ebf5f654b14413dd34faf6d3fe8dfaa6009ff063
File: app/models/vote.rb line 15
By ben7th:

```ruby
validates :creator_id, :title, :select_limit, :presence => true
```

改为

```ruby
validates :creator, :title, :select_limit, :presence => true
```

直接校验对象即可。好处是可以触发对象的关联校验。
ruby编程中应多遵循面向对象原则。