Sha256: 35e71515605727160c4fe13180e6f9cc39dd4b554903f4ffa1e8cb44279a8f1e

Contents?: true

Size: 817 Bytes

Versions: 49

Compression:

Stored size: 817 Bytes

Contents

<%
associated_form = render :partial => "form_association_record", :object => @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, column_scope(@column, @scope, @record))[:id]
  end
end %>
ActiveScaffold.create_associated_record_form('<%=sub_form_list_id(:association => @column.name, :id => @parent_record.id || generated_id(@parent_record) || 99999999999)%>','<%=escape_javascript(associated_form)%>', <%= options.to_json.html_safe %>);

Version data entries

49 entries across 49 versions & 1 rubygems

Version Path
active_scaffold-3.4.43 app/views/active_scaffold_overrides/edit_associated.js.erb
active_scaffold-3.4.42 app/views/active_scaffold_overrides/edit_associated.js.erb
active_scaffold-3.4.41.1 app/views/active_scaffold_overrides/edit_associated.js.erb
active_scaffold-3.4.41 app/views/active_scaffold_overrides/edit_associated.js.erb
active_scaffold-3.4.40 app/views/active_scaffold_overrides/edit_associated.js.erb
active_scaffold-3.4.39 app/views/active_scaffold_overrides/edit_associated.js.erb
active_scaffold-3.4.38 app/views/active_scaffold_overrides/edit_associated.js.erb
active_scaffold-3.4.37 app/views/active_scaffold_overrides/edit_associated.js.erb
active_scaffold-3.4.36 app/views/active_scaffold_overrides/edit_associated.js.erb
active_scaffold-3.4.35 app/views/active_scaffold_overrides/edit_associated.js.erb
active_scaffold-3.4.34 app/views/active_scaffold_overrides/edit_associated.js.erb
active_scaffold-3.4.33 app/views/active_scaffold_overrides/edit_associated.js.erb
active_scaffold-3.4.32 app/views/active_scaffold_overrides/edit_associated.js.erb
active_scaffold-3.4.31 app/views/active_scaffold_overrides/edit_associated.js.erb
active_scaffold-3.4.30 app/views/active_scaffold_overrides/edit_associated.js.erb
active_scaffold-3.4.29 app/views/active_scaffold_overrides/edit_associated.js.erb
active_scaffold-3.4.28 app/views/active_scaffold_overrides/edit_associated.js.erb
active_scaffold-3.4.27 app/views/active_scaffold_overrides/edit_associated.js.erb
active_scaffold-3.4.26 app/views/active_scaffold_overrides/edit_associated.js.erb
active_scaffold-3.4.25 app/views/active_scaffold_overrides/edit_associated.js.erb