Sha256: abf098debc9ae4b814457e2af2bb89d32d6eecc0bf6695ee9b33d490e8014796
Contents?: true
Size: 1.05 KB
Versions: 5
Compression:
Stored size: 1.05 KB
Contents
@options = { :scaffold_id => params[:scaffold_id], :action => "view" } @create_options = @options.merge(:action => "create"+@suffix, :id => params[:id]) if @successful @options[:id] = eval("@"+params[:scaffold_id]+".id") page.insert_html :bottom, scaffold_tbody_id(@options), :partial => scaffold_partial_path('row'), :object => eval("@"+params[:scaffold_id]), :locals => { :hidden => true } page << "new TableRow.MoveAfter('#{element_row_id(@create_options)}', '#{element_row_id(@options)}');" page.remove element_row_id(@create_options) page.show element_row_id(@options) page << "AjaxScaffold.stripe('#{scaffold_tbody_id(@options)}');" page << "AjaxScaffold.removeSortClasses('#{@options[:scaffold_id]}');" page.replace_html scaffold_messages_id(@options), :partial => scaffold_partial_path('messages') else page.replace_html element_messages_id(@create_options), :partial => scaffold_partial_path('form_messages') page << "Form.enable('#{element_form_id(@create_options)}');" page.hide loading_indicator_id(@create_options) end
Version data entries
5 entries across 5 versions & 1 rubygems