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



149
150
151
# File 'lib/active_scaffold/actions/nested.rb', line 149

def self.included(base)
  super
end

Instance Method Details

#add_existingObject



158
159
160
161
# File 'lib/active_scaffold/actions/nested.rb', line 158

def add_existing
  do_add_existing
  respond_to_action(:add_existing)
end

#destroy_existingObject



163
164
165
166
167
# File 'lib/active_scaffold/actions/nested.rb', line 163

def destroy_existing
  return redirect_to(params.merge(:action => :delete, :only_path => true)) if request.get?
  do_destroy_existing
  respond_to_action(:destroy_existing)
end

#new_existingObject



153
154
155
156
# File 'lib/active_scaffold/actions/nested.rb', line 153

def new_existing
  do_new
  respond_to_action(:new_existing)
end