ArgumentError: wrong number of arguments (1 for 2)
问题 I'm very new to Rails, MVC, and CRUD, and I'm trying to use the update method to change the amount of votes on a post. I have the following code in my Posts Controller update method: def update @post = Post.find(params[:id]) if params[:vote] == 'up' @post.update_column(:ups => @post[:ups] + 1) elsif params[:vote] == 'down' @post.update_column(:downs => @post[:downs] + 1) end flash[:notice] = "Thanks for voting! This helps us determine important issues in our schools." redirect_to 'Posts#index