test/dummy/app/controllers/comments_controller.rb in merit-3.0.2 vs test/dummy/app/controllers/comments_controller.rb in merit-3.0.3

- old
+ new

@@ -31,10 +31,10 @@ end end def update @comment = Comment.find(params[:id]) - if @comment.update_attributes(comment_params) + if @comment.update(comment_params) redirect_to(@comment, :notice => 'Comment was successfully updated.') else render "edit" end end