Class: MachinesController

Inherits:
InheritedResources::Base show all
Defined in:
lib/vendor/plugins/inherited_resources/test/redirect_to_test.rb

Instance Attribute Summary

Attributes inherited from ActionController::Base

#formats

Instance Method Summary collapse

Methods inherited from InheritedResources::Base

inherit_resources

Methods included from InheritedResources::DSL

included

Methods inherited from ActionController::Base

clear_respond_to, inherit_resources, respond_to, #respond_to, #respond_with, #responder

Instance Method Details

#createObject



8
9
10
# File 'lib/vendor/plugins/inherited_resources/test/redirect_to_test.rb', line 8

def create
  create!{ complex_url(:create, true, true) }
end

#destroyObject



16
17
18
# File 'lib/vendor/plugins/inherited_resources/test/redirect_to_test.rb', line 16

def destroy
  destroy!{ complex_url(:destroy, true, false) }
end

#updateObject



12
13
14
# File 'lib/vendor/plugins/inherited_resources/test/redirect_to_test.rb', line 12

def update
  update!{ complex_url(:update, false, false) }
end