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
155 156 157 |
# File 'lib/active_scaffold/actions/nested.rb', line 155 def self.included(base) super end |
Instance Method Details
#add_existing ⇒ Object
164 165 166 167 |
# File 'lib/active_scaffold/actions/nested.rb', line 164 def add_existing do_add_existing respond_to_action(:add_existing) end |
#destroy_existing ⇒ Object
169 170 171 172 173 |
# File 'lib/active_scaffold/actions/nested.rb', line 169 def destroy_existing return redirect_to(params.merge(:action => :delete, :only_path => true)) if request.get? || request.head? do_destroy_existing respond_to_action(:destroy_existing) end |
#new_existing ⇒ Object
159 160 161 162 |
# File 'lib/active_scaffold/actions/nested.rb', line 159 def new_existing do_new respond_to_action(:new_existing) end |