This would end up making a sub db request for each response.

How about getting the responses with something along the lines of:

```ruby
def responses_with_url_type
  responses.joins(:answer).where({:answers => {input_type: 'url'}})
end
```
?