parent
3ade87167a
commit
71bdf3bfcc
5 changed files with 19 additions and 7 deletions
|
|
@ -36,6 +36,11 @@ class ArticlesController < ApplicationController
|
|||
render :layout => false
|
||||
end
|
||||
|
||||
def copy
|
||||
@article = @supplier.articles.find(params[:article_id]).dup
|
||||
render :layout => false
|
||||
end
|
||||
|
||||
def create
|
||||
@article = Article.new(params[:article])
|
||||
if @article.valid? && @article.save
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue