app/controllers/plugins/ecommerce/admin/prices_controller.rb in camaleon_ecommerce-0.0.4 vs app/controllers/plugins/ecommerce/admin/prices_controller.rb in camaleon_ecommerce-1.1

- old
+ new

@@ -8,26 +8,26 @@ =end class Plugins::Ecommerce::Admin::PricesController < Plugins::Ecommerce::AdminController before_action :set_shipping_method def index - admin_breadcrumb_add("#{t('plugin.ecommerce.product.price')}") + add_breadcrumb("#{t('plugin.ecommerce.product.price')}") end def new @price = {} - admin_breadcrumb_add("#{t('plugin.ecommerce.product.price')}", admin_plugins_ecommerce_shipping_method_prices_path( params[:shipping_method_id] )) - admin_breadcrumb_add("#{t('plugin.ecommerce.new')}") + add_breadcrumb("#{t('plugin.ecommerce.product.price')}", admin_plugins_ecommerce_shipping_method_prices_path( params[:shipping_method_id] )) + add_breadcrumb("#{t('plugin.ecommerce.new')}") render 'form' end def show end def edit @price = @prices[params[:id].to_sym] || {} - admin_breadcrumb_add("#{t('plugin.ecommerce.product.price')}", admin_plugins_ecommerce_shipping_method_prices_path( params[:shipping_method_id] )) - admin_breadcrumb_add("#{t('camaleon_cms.admin.button.edit')}") + add_breadcrumb("#{t('plugin.ecommerce.product.price')}", admin_plugins_ecommerce_shipping_method_prices_path( params[:shipping_method_id] )) + add_breadcrumb("#{t('camaleon_cms.admin.button.edit')}") render 'form' end def create _id = Time.now.to_i.to_s