Module: Adminpanel::RestActionsHelper
- Included in:
- ApplicationController
- Defined in:
- app/helpers/adminpanel/rest_actions_helper.rb
Instance Method Summary collapse
- #create ⇒ Object
- #destroy ⇒ Object
- #edit ⇒ Object
- #index ⇒ Object
- #new ⇒ Object
- #show ⇒ Object
- #update ⇒ Object
Instance Method Details
#create ⇒ Object
21 22 23 24 25 26 |
# File 'app/helpers/adminpanel/rest_actions_helper.rb', line 21 def create create! do |success, failure| success.html { render "shared/index" } failure.html { render "shared/new"} end end |
#destroy ⇒ Object
41 42 43 44 45 |
# File 'app/helpers/adminpanel/rest_actions_helper.rb', line 41 def destroy destroy! do |format| format.html { render "shared/index" } end end |
#edit ⇒ Object
28 29 30 31 32 |
# File 'app/helpers/adminpanel/rest_actions_helper.rb', line 28 def edit edit! do |format| format.html { render "shared/edit" } end end |
#index ⇒ Object
3 4 5 6 7 |
# File 'app/helpers/adminpanel/rest_actions_helper.rb', line 3 def index index! do |format| format.html { render "shared/index" } end end |
#new ⇒ Object
15 16 17 18 19 |
# File 'app/helpers/adminpanel/rest_actions_helper.rb', line 15 def new new! do |format| format.html { render "shared/new" } end end |
#show ⇒ Object
9 10 11 12 13 |
# File 'app/helpers/adminpanel/rest_actions_helper.rb', line 9 def show show! do |format| format.html { render "shared/show" } end end |
#update ⇒ Object
34 35 36 37 38 39 |
# File 'app/helpers/adminpanel/rest_actions_helper.rb', line 34 def update update! do |success, failure| success.html { render "shared/index" } failure.html { render "shared/update" } end end |