title: Rails 3 / Devise: Checking to see if users have any of multiple roles
body: <p>I have a users model with Devise, and I've set up roles so users can be assigned either one or multiple roles. If I want to check for a user's role in say, a view, the following code works...</p>
  
  <pre><code>&lt;% if current_user.roles.include? Role.find_by_name('Administrator') %&gt;
       You are an administrator!
  &lt;% end %&gt;
  </code></pre>
  
  <p>But now, let's say I want to check if a user has one of multiple roles, to see if they're either an Administrator or Editor. I was certain the following would work....</p>
  
  <pre><code>&lt;% if current_user.roles.include? Role.find_by_name('Administrator' || 'Editor') %&gt;
  </code></pre>
  
  <p>...but it doesn't, it only works if you're an administrator and ignores checking all other roles after the first one in that list. I've tried other combinations like Role.find_by_name(['Administrator','Editor']) and whatnot, to no success. Exactly how would I format this to accomplish checking for multiple roles? I've hunted all over Google but all examples uses a single role.</p>