Method: Bongo::ArticlesController#update

Defined in:
app/controllers/bongo/articles_controller.rb

#updateObject



44
45
46
47
48
49
50
51
52
# File 'app/controllers/bongo/articles_controller.rb', line 44

def update
  authorize @article

  if @article.update(article_params)
    redirect_to @article, notice: 'Article was successfully updated.'
  else
    render :edit
  end
end