Please, Help Me!
I installed "Ruby On Rails -v 3.2.13" on Ubuntun 12.04 amd64 winth rvm.
Then I tried to install 'authlogic' from
https://github.com/binarylogic/authlogic
When I am trying generate model User_session, I get this error:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
root@glafir-Maximus-Formula:/home/glafir/RoR/ic# rails generate session
user_session
/usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.13/lib/active_record/dynamic_matchers.rb:55:in
`method_missing': undefined local variable or method
`inheritable_attributes' for ActiveRecord::Base:Class (NameError)
from
/usr/local/rvm/gems/ruby-1.9.3-p392/bundler/gems/authlogic-85b2a6b3e999/lib/authlogic/acts_as_authentic/base.rb:64:in
`acts_as_authentic_modules'
from
/usr/local/rvm/gems/ruby-1.9.3-p392/bundler/gems/authlogic-85b2a6b3e999/lib/authlogic/acts_as_authentic/base.rb:44:in
`add_acts_as_authentic_module'
from
/usr/local/rvm/gems/ruby-1.9.3-p392/bundler/gems/authlogic-85b2a6b3e999/lib/authlogic/acts_as_authentic/email.rb:11:in
`block in included'
from
/usr/local/rvm/gems/ruby-1.9.3-p392/bundler/gems/authlogic-85b2a6b3e999/lib/authlogic/acts_as_authentic/email.rb:9:in
`class_eval'
from
/usr/local/rvm/gems/ruby-1.9.3-p392/bundler/gems/authlogic-85b2a6b3e999/lib/authlogic/acts_as_authentic/email.rb:9:in
`included'
from
/usr/local/rvm/gems/ruby-1.9.3-p392/bundler/gems/authlogic-85b2a6b3e999/lib/authlogic/acts_as_authentic/base.rb:96:in
`include'
from
/usr/local/rvm/gems/ruby-1.9.3-p392/bundler/gems/authlogic-85b2a6b3e999/lib/authlogic/acts_as_authentic/base.rb:96:in
`<top (required)>'
from
/usr/local/rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in
`require'
from
/usr/local/rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in
`block in require'
from
/usr/local/rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in
`load_dependency'
from
/usr/local/rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in
`require'
from
/usr/local/rvm/gems/ruby-1.9.3-p392/bundler/gems/authlogic-85b2a6b3e999/lib/authlogic.rb:59:in
`block in <top (required)>'
from
/usr/local/rvm/gems/ruby-1.9.3-p392/bundler/gems/authlogic-85b2a6b3e999/lib/authlogic.rb:6:in
`each'
from
/usr/local/rvm/gems/ruby-1.9.3-p392/bundler/gems/authlogic-85b2a6b3e999/lib/authlogic.rb:6:in
`<top (required)>'
from
/usr/local/rvm/gems/ruby-1.9.3-p392@global/gems/bundler-1.3.4/lib/bundler/runtime.rb:72:in
`require'
from
/usr/local/rvm/gems/ruby-1.9.3-p392@global/gems/bundler-1.3.4/lib/bundler/runtime.rb:72:in
`block (2 levels) in require'
from
/usr/local/rvm/gems/ruby-1.9.3-p392@global/gems/bundler-1.3.4/lib/bundler/runtime.rb:70:in
`each'
from
/usr/local/rvm/gems/ruby-1.9.3-p392@global/gems/bundler-1.3.4/lib/bundler/runtime.rb:70:in
`block in require'
from
/usr/local/rvm/gems/ruby-1.9.3-p392@global/gems/bundler-1.3.4/lib/bundler/runtime.rb:59:in
`each'
from
/usr/local/rvm/gems/ruby-1.9.3-p392@global/gems/bundler-1.3.4/lib/bundler/runtime.rb:59:in
`require'
from
/usr/local/rvm/gems/ruby-1.9.3-p392@global/gems/bundler-1.3.4/lib/bundler.rb:132:in
`require'
from /home/glafir/RoR/ic/config/application.rb:5:in `<top (required)>'
from
/usr/local/rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.13/lib/rails/commands.rb:24:in
`require'
from
/usr/local/rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.13/lib/rails/commands.rb:24:in
`<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
gem list
+++++++++++++++++++
*** LOCAL GEMS ***
actionmailer (3.2.13, 3.2.12, 3.2.8)
actionpack (3.2.13, 3.2.12, 3.2.8)
activemodel (3.2.13, 3.2.12, 3.2.8)
activerecord (3.2.13, 3.2.12, 3.2.8)
activeresource (3.2.13, 3.2.12, 3.2.8)
activesupport (3.2.13, 3.2.12, 3.2.8)
arel (3.0.2)
authlogic (3.2.0)
bcrypt-ruby (3.0.1)
builder (3.0.4, 3.0.3)
bundler (1.3.4)
ckeditor (4.0.2, 3.7.3)
coffee-rails (3.2.2)
coffee-script (2.2.0)
coffee-script-source (1.6.2, 1.6.1, 1.3.3)
diff-lcs (1.2.1, 1.1.3)
erb2haml (0.1.4, 0.1.2)
erubis (2.7.0)
execjs (1.4.0)
gravatar_image_tag (1.1.3)
haml (4.0.1, 3.1.7)
haml-rails (0.4, 0.3.5)
hike (1.2.1)
hpricot (0.8.6)
i18n (0.6.4, 0.6.1)
journey (1.0.4)
jquery-rails (2.2.1, 2.1.2)
json (1.7.7, 1.7.5)
lazybox (0.2.5, 0.2.1)
mail (2.5.3, 2.4.4)
mime-types (1.21, 1.19)
mini_magick (3.5.0, 3.4)
mousetrap-rails (0.0.9, 0.0.5)
multi_json (1.7.2, 1.7.0, 1.3.6)
mysql (2.9.1, 2.8.1)
mysql2 (0.3.11)
nokogiri (1.5.9, 1.5.5)
orm_adapter (0.4.0)
polyglot (0.3.3)
rack (1.4.5, 1.4.1)
rack-cache (1.2)
rack-ssl (1.3.3, 1.3.2)
rack-test (0.6.2, 0.6.1)
rails (3.2.13, 3.2.12, 3.2.8)
rails3-generators (1.0.0)
railties (3.2.13, 3.2.12, 3.2.8)
rake (10.0.4, 10.0.3, 0.9.2.2)
rdoc (3.12.2, 3.12)
rspec (2.11.0)
rspec-core (2.13.1, 2.11.1)
rspec-expectations (2.13.0, 2.11.3)
rspec-mocks (2.13.0, 2.11.3)
rspec-rails (2.13.0, 2.11.0)
ruby_parser (3.1.2, 2.3.1)
rubygems-bundler (1.1.1)
russian (0.6.0)
rvm (1.11.3.6)
sass (3.2.7, 3.2.1)
sass-rails (3.2.6, 3.2.5)
sexp_processor (4.2.0, 3.2.0)
sprockets (2.2.2, 2.1.3)
sqlite3 (1.3.7, 1.3.6)
stamp (0.5.0, 0.2.0)
subexec (0.2.2)
thor (0.18.0, 0.17.0, 0.16.0)
tilt (1.3.6, 1.3.5, 1.3.3)
treetop (1.4.12, 1.4.10)
tzinfo (0.3.37, 0.3.33)
uglifier (1.3.0)
webrat (0.7.3)
will_paginate (3.0.4, 3.0.3)
++++++++++++++++++++++++++++++++++
Ruby -v
++++++++++++++
ruby 1.9.3p392 (2013-02-22 revision 39386) [x86_64-linux]
+++++++++++++++
Where I made a mistake? Help me, please!
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment