search for: instantiate_observers

Displaying 7 results from an estimated 7 matches for "instantiate_observers".

2006 Aug 08
2
Migrations broken on trunk?
Just got an odd error running migrations off of a new trunk today. Is this my fault is there a bug right now? > rake db:migrate --trace (in /home/magneticworld) ** Invoke db:migrate (first_time) ** Invoke environment (first_time) ** Execute environment rake aborted! undefined method `instantiate_observers'' for ActiveRecord::Base:Class /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/base.rb:1129:in `method_missing'' /home/magneticworld/config/../vendor/rails/railties/lib/initializer.rb:179:in `load_observers'' /home/magneticworld/config/../vendor/rai...
2013 Mar 14
7
No Migration Files are created
I''ve been working with Rails for 3 Months now, but haven''t experienced this problem until now. I''m currently working through Micharl Hartls Tutorial and everything worked fine so far, but suddenly (chapter 11) I can nolonger create Migration Files. when entering "rails g model Name field1:type" I don''t get the usual "create db/migrate...."
2010 Nov 05
0
RoR:OSV: Installation issue
...gems/1.8/gems/activerecord-2.3.8/lib/active_record/ observer.rb:166:in `initialize'' from /usr/lib/ruby/1.8/singleton.rb:94:in `new'' from /usr/lib/ruby/1.8/singleton.rb:94:in `instance'' from /var/lib/gems/1.8/gems/activerecord-2.3.8/lib/active_record/ observer.rb:38:in `instantiate_observers'' from /var/lib/gems/1.8/gems/activerecord-2.3.8/lib/active_record/ observer.rb:36:in `each'' from /var/lib/gems/1.8/gems/activerecord-2.3.8/lib/active_record/ observer.rb:36:in `instantiate_observers'' from /var/lib/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/ d...
2014 Feb 17
0
Need help -FATAL: database "catarse_development" does not exist
...ons.rb:66:in `constantize' /usr/local/rvm/gems/ruby-1.9.3-p484/gems/rails-observers-0.1.2/lib/rails/observers/active_model/observing.rb:183:in `instantiate_observer' /usr/local/rvm/gems/ruby-1.9.3-p484/gems/rails-observers-0.1.2/lib/rails/observers/active_model/observing.rb:108:in `block in instantiate_observers' /usr/local/rvm/gems/ruby-1.9.3-p484/gems/rails-observers-0.1.2/lib/rails/observers/active_model/observing.rb:108:in `each' /usr/local/rvm/gems/ruby-1.9.3-p484/gems/rails-observers-0.1.2/lib/rails/observers/active_model/observing.rb:108:in `instantiate_observers' /usr/local/rvm/gems/rub...
2012 Feb 11
1
rake command shows the error
...s/1.8/gems/activerecord-2.3.8/lib/active_record/observer.rb:166:in `initialize'' from /usr/lib/ruby/1.8/singleton.rb:94:in `new'' from /usr/lib/ruby/1.8/singleton.rb:94:in `instance'' from /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/observer.rb:38:in `instantiate_observers'' from /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/observer.rb:36:in `each'' from /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/observer.rb:36:in `instantiate_observers'' from /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_...
2007 Aug 04
0
observers
...in the environment.rb and it instantiates them somewhere during startup. To use that in merb you have to define the observers and then also instantiate them. Add something like this to the end of the merb_init.rb file. ActiveRecord::Base.observers << :attachment_observer ActiveRecord::Base.instantiate_observers At least its working for me from merb -i right now.
2009 Mar 15
3
Capistrano deploy errors
...1.8/gems/activerecord-2.2.2/lib/active_record/ observer.rb:166:in `initialize'' /usr/local/lib/ruby/1.8/singleton.rb:94:in `new'' /usr/local/lib/ruby/1.8/singleton.rb:94:in `instance'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/ observer.rb:38:in `instantiate_observers'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/ observer.rb:36:in `each'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/ observer.rb:36:in `instantiate_observers'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/ acti...