title: no implicit conversion of String into Array
body: <p>So I have the same action for all intents and purposes being executed. Yet one work and the other does not.</p>
  
  <p>DB setup</p>
  
  <pre><code>add_column :cards, :score, :integer, :default =&gt; 0
  add_column :cards, :comments, :integer, :default =&gt; 0
  
  =&gt; Card(id: integer, user_id: integer, event: text, created_at: datetime, updated_at: datetime, score: integer, comments: integer)
  </code></pre>
  
  <p>The vote controller (this one works)</p>
  
  <pre><code>  def create
  @vote = Vote.where(:card_id =&gt; params[:vote][:card_id], :user_id =&gt; current_user.id).first
  if @vote
    @vote.up = params[:vote][:up]
    @vote.save
    @card = Card.find(params[:vote][:card_id])
    if @vote.up == true
      @card.score += 2
    else
      @card.score -= 2
    end
    @card.save
  else
    @vote = Vote.new
    @vote.card_id = params[:vote][:card_id]
    @vote.user = current_user
    @vote.up = params[:vote][:up]
    @vote.save
    @card = Card.find(params[:vote][:card_id])
    if @vote.up == true
      @card.score += 1
    else
      @card.score -= 1
    end
    @card.save
  end
  redirect_to :back
  end
  </code></pre>
  
  <p>comments controller (does not work) i get "no implicit conversion of Fixnum into Array"</p>
  
  <pre><code>def create
    @comment = Comment.new
    @comment.message = params[:comment][:message]
    @comment.card_id = params[:comment][:card_id]
    @comment.user = current_user
    @comment.save
    @card = Card.find(params[:comment][:card_id])
    @card.comments += 1
    @card.save
    redirect_to :back
  end
  </code></pre>
  
  <p>What am I missing here? Thank you all for your help in advance.</p>
  
  <p>Ian</p>