search for: save_global_document

Displaying 2 results from an estimated 2 matches for "save_global_document".

2006 Jun 20
2
Problem with "can''t dump anonymous class Class"
...; C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/transac tions.rb:118:in `transaction'' C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/transac tions.rb:126:in `save'' #{RAILS_ROOT}/app/controllers/enrollment_admin_controller.rb:34:in `save_global_document'' -e:4 Any ideas on how to fix this? If I change GlobalDocument to Document below, it works fine. Here is the relevant code: ** Models ** class Document < ActiveRecord::Base attr_accessor :uploaded_file def after_create if !File.exists?(File.dirname(self.file_path))...
2006 Jun 19
3
can''t dump anonymous class Class
...def documents @associations = Association.find(:all, :order => [ "name" ]) @association_documents = AssociationDocument.find(:all, :include => [ "association" ]) @global_documents = GlobalDocument.find_all() @new_document = GlobalDocument.new end def save_global_document doc = GlobalDocument.new(params[:new_document]) if doc.save flash[:notice] = "<em>#{doc.name}</em> was saved" else flash[:error] = doc.errors.full_messages.join("<br />") end redirect_to :action => :documents end ** View **...