Change update_attributes to update
This commit is contained in:
parent
6340e224ed
commit
c7a74c8e7d
4 changed files with 4 additions and 4 deletions
|
@ -70,7 +70,7 @@ class ArticlesController < ApplicationController
|
|||
def update
|
||||
@article = @supplier.articles.find(params[:id])
|
||||
respond_to do |format|
|
||||
if @article.update_attributes(params[:article])
|
||||
if @article.update(params[:article])
|
||||
flash[:notice] = 'Article was successfully updated.'
|
||||
format.html { redirect_to supplier_article_url(@article.supplier, @article) }
|
||||
format.xml { head :ok }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue