title: Forbidden Attributes Error in Rails 4 when encountering a situation where one would have used attr_accessible in earlier versions of Rails
body: <p>With the recent upgrade to Rails 4, updating attributes using code resembling the below does not work, I get a <code>ActiveModel::ForbiddenAttributes</code> error:</p>
  
  <pre><code>@user.update_attributes(params[:user], :as =&gt; :admin)
  </code></pre>
  
  <p>Where User has the following attr_accessible line in the model:</p>
  
  <pre><code>attr_accessible :role_ids, :as =&gt;admin
  # or any attribute other than :role_ids contained within :user
  </code></pre>
  
  <p>How do you accomplish the same task in Rails 4?</p>