Rails: attributes not being saved even though I called @user.save
问题 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. 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' end I fixed it myself. I had to create a new class attached to users in order to get it to work. Lol. 回答1: Do you have any