Hallo Leute,

ich probiere gerade einmal aus eine kleine Rails Anwendung mit JRuby zu
erstellen.
Habe lustig ein App-Skeleton erstellen lassen und gleich auch noch zwei
Models dazu, dann die Datenbanken angelegt, database.yml konfiguriert,
Migrations geschrieben, und dann wollte ich die Migrations auch laufen
lassen.
Dabei stosse auf diesen garstigen Fehler:

~>jruby -S rake db:migrate --trace
(in ~/jruby_test)
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
undefined or inaccessible method `cattr_accessor' for
ActiveRecord::Base:Class
/jruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/abstract/connection_specification.rb:14:in
`method_missing'
/jruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/abstract/connection_specification.rb:14
---snip---

Die entsprechende Stelle in der connection_specification.rb sieht so aus:

12  # Check for activity after at least +verification_timeout+ seconds.
13  # Defaults to 0 (always check.)
14  cattr_accessor :verification_timeout, :instance_writer => false
15  @@verification_timeout = 0

Bei Google und Co lässt dazu auf anhieb nichts sinnvolles finden :-(
Hat jemand einen Tip für mich was ich falsch mache, bzw. wo ich noch
nach Lösungen suchen kann?

Sonnigen Gruß,
Bernd
_______________________________________________
rubyonrails-ug mailing list
[email protected]
http://mailman.headflash.com/mailman/listinfo/rubyonrails-ug

Antwort per Email an