Module: Adminpanel::RestActionsHelper

Included in:
ApplicationController
Defined in:
app/helpers/adminpanel/rest_actions_helper.rb

Instance Method Summary collapse

Instance Method Details

#createObject



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

#destroyObject



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

#editObject



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

#indexObject



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

#newObject



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

#showObject



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

#updateObject



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