Module: ActiveScaffold::Actions::Create
- Defined in:
- lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/actions/create.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/actions/create.rb', line 3 def self.included(base) base.before_filter :create_authorized_filter, :only => [:new, :create] base.prepend_before_filter :constraints_for_nested_create, :only => [:new, :create] base.verify :method => :post, :only => :create, :redirect_to => { :action => :index } end |
Instance Method Details
#create ⇒ Object
16 17 18 19 20 |
# File 'lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/actions/create.rb', line 16 def create do_create @insert_row = params[:parent_controller].nil? respond_to_action(:create) end |
#new ⇒ Object
11 12 13 14 |
# File 'lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/actions/create.rb', line 11 def new do_new respond_to_action(:new) end |