All pastes #733647 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-10-11 23:46 UTC
rendered paste body
 def thumbs_down
    @article = Article.find(params[:id])
    Article.update(params[:id], { 'thumbs' => @article.thumbs -1 })
  end