diff --git a/app/views/domains/_form_association_footer.html.erb b/app/views/domains/_form_association_footer.html.erb index b9aea05..d7bac2e 100644 --- a/app/views/domains/_form_association_footer.html.erb +++ b/app/views/domains/_form_association_footer.html.erb @@ -12,8 +12,8 @@ show_add_new = column_show_add_new(column, associated, @record) return unless show_add_new or show_add_existing -edit_associated_url = url_for(:action => 'edit_associated', :id => parent_record.id, :association => column.name, :associated_id => '--ID--', :escape => false, :eid => params[:eid], :parent_controller => params[:parent_controller], :parent_id => params[:parent_id]) if show_add_existing -add_new_url = url_for(:action => 'edit_associated', :id => parent_record.id, :association => column.name, :escape => false, :eid => params[:eid], :parent_controller => params[:parent_controller], :parent_id => params[:parent_id]) if show_add_new +edit_associated_url = params_for(:action => 'edit_associated', :child_association => column.name, :associated_id => '--ID--') if show_add_existing +add_new_url = params_for(:action => 'edit_associated', :child_association => column.name) if show_add_new -%>