I see you doing this in the users_controller as well. I wonder if this logic makes more sense as a method on User? Something like

```ruby
class User
  def has_provider?(provider)
    providers.include? provider
  end

  def providers
    providers.map{ |p| p.name }.uniq
  end
```

This would give you the flexability of being able to inquire about any provider, not just twitter, and since its a question you're asking about an object, you should ask the object itself rather than orchestrate the behavior through the controller :)