ActiveRecord models `create` method takes a hash; and resource is a hash. You could write this code:

```
resource_with_topic_id = resource.merge(topic_id: self.id)
Resource.create(resource_with_topic_id)
```

Also, one of the awesome parts about ActiveRecord associations is that when you reference the `resources` method inside of your `Topic` instance; you get an [ActiveRecord::Association](http://api.rubyonrails.org/classes/ActiveRecord/Associations/ClassMethods.html) object!

This object has similar methods to ActiveRecord models, like `create` or `where` which allow you narrow down your queries to automatically include the topic's id!

So you could rewrite this code even smaller:

```
resources.create(resource)
```