Sha256: bed73d6b20dee448b2bb8ae537e9ff18cb12957475a979296abf70241009f902

Contents?: true

Size: 662 Bytes

Versions: 41

Compression:

Stored size: 662 Bytes

Contents

associated_form = render :partial => "#{subform_partial_for_column(@column)}_record", :locals => {:scope => @scope, :parent_record => @parent_record, :column => @column, :locked => @record.new_record? && @column.singular_association?}
options = {:singular => false}
if @column.singular_association?
  options[:singular] = true
else
  unless @record.new_record?
    column = active_scaffold_config_for(@record.class).columns[@record.class.primary_key]
    options[:id] = active_scaffold_input_options(column, @scope)[:id]
  end
end
page.call 'ActiveScaffold.create_associated_record_form', sub_form_list_id(:association => @column.name), associated_form, options

Version data entries

41 entries across 41 versions & 4 rubygems

Version Path
active_scaffold_vho-3.0.31 frontends/default/views/edit_associated.js.rjs
active_scaffold_vho-3.0.30 frontends/default/views/edit_associated.js.rjs
active_scaffold_vho-3.0.29 frontends/default/views/edit_associated.js.rjs
active_scaffold_vho-3.0.28 frontends/default/views/edit_associated.js.rjs
active_scaffold_vho-3.0.27 frontends/default/views/edit_associated.js.rjs
active_scaffold_vho-3.0.26 frontends/default/views/edit_associated.js.rjs
active_scaffold_vho-3.0.25 frontends/default/views/edit_associated.js.rjs
active_scaffold-3.0.26 frontends/default/views/edit_associated.js.rjs
active_scaffold-3.0.25 frontends/default/views/edit_associated.js.rjs
active_scaffold_vho-3.0.24 frontends/default/views/edit_associated.js.rjs
active_scaffold_clarity-3.0.24.2 frontends/default/views/edit_associated.js.rjs
active_scaffold_vho-3.0.23 frontends/default/views/edit_associated.js.rjs
active_scaffold_vho-3.0.22 frontends/default/views/edit_associated.js.rjs
active_scaffold-3.0.24 frontends/default/views/edit_associated.js.rjs
active_scaffold_vho-3.0.21 frontends/default/views/edit_associated.js.rjs
active_scaffold-3.0.23 frontends/default/views/edit_associated.js.rjs
active_scaffold-3.0.22 frontends/default/views/edit_associated.js.rjs
active_scaffold-3.0.21 frontends/default/views/edit_associated.js.rjs
active_scaffold_vho-3.0.20 frontends/default/views/edit_associated.js.rjs
active_scaffold_vho-3.0.19 frontends/default/views/edit_associated.js.rjs