Method: KktShoppe::ProductsController#create
- Defined in:
- app/controllers/kkt_shoppe/products_controller.rb
#create ⇒ Object
15 16 17 18 19 20 21 22 |
# File 'app/controllers/kkt_shoppe/products_controller.rb', line 15 def create @product = KktShoppe::Product.new(safe_params) if @product.save redirect_to :products, :flash => {:notice => t('kkt_shoppe.products.create_notice') } else render :action => "new" end end |