title: Rails: attributes not being saved even though I called @user.save
body: <p>I'm running this function, and I KNOW that it gets called because the redirect_to is working. But for some reason, @user isn't! If it helps, @user is devise based.</p>
  
  <pre><code>def make_feed_preference
  @user = current_user
  #@user.feed_preference = params[:preference]
  
  @user.feed_preference = "time"
  @user.name = "Shoo Nabarrr"
  @user.karma = 666
  
  @user.save
  
  redirect_to '/posts'
  </code></pre>
  
  <h2>     end</h2>
  
  <p>I fixed it myself. I had to create a new class attached to users in order to get it to work. Lol.</p>