Module: ActiveScaffold::Actions::Nested::ChildMethods
- Defined in:
- lib/active_scaffold/actions/nested.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
121 122 123 |
# File 'lib/active_scaffold/actions/nested.rb', line 121 def self.included(base) super end |
Instance Method Details
#add_existing ⇒ Object
130 131 132 133 |
# File 'lib/active_scaffold/actions/nested.rb', line 130 def add_existing do_add_existing respond_to_action(:add_existing) end |
#destroy_existing ⇒ Object
135 136 137 138 139 |
# File 'lib/active_scaffold/actions/nested.rb', line 135 def destroy_existing return redirect_to(params.merge(:action => :delete)) if request.get? do_destroy_existing respond_to_action(:destroy_existing) end |
#new_existing ⇒ Object
125 126 127 128 |
# File 'lib/active_scaffold/actions/nested.rb', line 125 def new_existing do_new respond_to_action(:new_existing) end |