Class: InheritedViews::Base

Inherits:
InheritedResources::Base
  • Object
show all
Includes:
TableBuilder
Defined in:
lib/inherited_views/base.rb

Instance Method Summary collapse

Methods included from TableBuilder

included, #index_table_columns, #table_config

Instance Method Details

#createObject



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

#editObject



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

#indexObject

Actions



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

#newObject



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

#showObject



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

#updateObject



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