Class: InheritedViews::Base
- Inherits:
-
InheritedResources::Base
- Object
- InheritedResources::Base
- InheritedViews::Base
show all
- Includes:
- TableBuilder
- Defined in:
- lib/inherited_views/base.rb
Instance Method Summary
collapse
included, #index_table_columns, #table_config
Instance Method Details
#create ⇒ Object
48
49
50
51
52
|
# File 'lib/inherited_views/base.rb', line 48
def create
create! do |success, failure|
failure.html { render_or_default 'new' }
end
end
|
#edit ⇒ Object
60
61
62
63
64
|
# File 'lib/inherited_views/base.rb', line 60
def edit
super do |format|
format.html { render_or_default 'edit' }
end
end
|
#index ⇒ Object
36
37
38
39
40
|
# File 'lib/inherited_views/base.rb', line 36
def index
super do |format|
format.html { render_or_default 'index' }
end
end
|
#new ⇒ Object
42
43
44
45
46
|
# File 'lib/inherited_views/base.rb', line 42
def new
super do |format|
format.html { render_or_default 'new' }
end
end
|
#show ⇒ Object
54
55
56
57
58
|
# File 'lib/inherited_views/base.rb', line 54
def show
super do |format|
format.html { render_or_default 'show' }
end
end
|
#update ⇒ Object
66
67
68
69
70
|
# File 'lib/inherited_views/base.rb', line 66
def update
update! do |success, failure|
failure.html { render_or_default 'edit' }
end
end
|