lib/scaffolding_extensions/prototype_helper.rb
# Div with link inside that requests the associations html for the @scaffold_object
# via Ajax and replaces the link with the html returned by the request
Div with link inside that requests the associations html for the @scaffold_object
via Ajax and replaces the link with the html returned by the request
Div with link inside that requests the associations html for the @scaffold_object via Ajax and replaces the link with the html returned by the request
def scaffold_load_associations_with_ajax_link
        soid = @scaffold_object.scaffold_id
        divid = "scaffold_ajax_content_#{soid}"
        "<div class='scaffold_ajax_content' id='#{divid}'><a href='#{scaffold_url("edit#{@scaffold_suffix}", :id=>soid, :associations=>:show)}' onclick=\"new Ajax.Updater('#{divid}', '#{scaffold_url("associations#{@scaffold_suffix}", :id=>soid)}', {method:'get', asynchronous:true, evalScripts:true}); return false;\">Modify Associations</a></div>"
      end
def scaffold_load_associations_with_ajax_link soid = @scaffold_object . scaffold_id divid = "scaffold_ajax_content_#{soid}" "<div class='scaffold_ajax_content' id='#{divid}'><a href='#{scaffold_url("edit#{@scaffold_suffix}", :id=>soid, :associations=>:show)}' onclick=\"new Ajax.Updater('#{divid}', '#{scaffold_url("associations#{@scaffold_suffix}", :id=>soid)}', {method:'get', asynchronous:true, evalScripts:true}); return false;\">Modify Associations</a></div>" end
Div with link inside that requests the associations html for the @scaffold_object
via Ajax and replaces the link with the html returned by the request
Div with link inside that requests the associations html for the @scaffold_object via Ajax and replaces the link with the html returned by the request