Class: Comable::Admin::StoreController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Comable::Admin::StoreController
- Defined in:
- app/controllers/comable/admin/store_controller.rb
Instance Method Summary collapse
Methods inherited from ApplicationController
Instance Method Details
#edit ⇒ Object
14 15 |
# File 'app/controllers/comable/admin/store_controller.rb', line 14 def edit end |
#show ⇒ Object
10 11 12 |
# File 'app/controllers/comable/admin/store_controller.rb', line 10 def show render :edit end |
#update ⇒ Object
17 18 19 20 21 22 23 24 |
# File 'app/controllers/comable/admin/store_controller.rb', line 17 def update if @store.update_attributes(store_params) redirect_to comable.admin_store_url, notice: Comable.t('successful') else flash.now[:alert] = Comable.t('failure') render :edit end end |