`method_missing_without_paginate': undefined method `class_attribute' for ActiveRecord::Base:Class

494 views
Skip to first unread message

Nirav

unread,
Oct 16, 2012, 4:40:07 AM10/16/12
to rubyonra...@googlegroups.com
hi 
 i am using radiant 0.8.2 , rails 2.3.4, ruby 1.8.7 and rubygems 1.4.2. and i can't able to run my existing application. 

error occurred :

 run command for server "script/server -e production -p 3001"

error:

=> Booting WEBrick
=> Rails 2.3.4 application starting on http://0.0.0.0:3001
config.gem: Unpacked gem rack-rewrite-1.2.1 in vendor/gems has no specification file. Run 'rake gems:refresh_specs' to fix this.
/home/bacancy/Demo_app/smart/vendor/radiant/vendor/rails/railties/lib/rails/gem_dependency.rb:119:Warning: Gem::Dependency#version_requirements is deprecated and will be removed on or after August 2010.  Use #requirement
/home/bacancy/Demo_app/smart/vendor/radiant/vendor/rails/activerecord/lib/active_record/base.rb:1959:in `method_missing_without_paginate': undefined method `class_attribute' for ActiveRecord::Base:Class (NoMethodError)
from /home/bacancy/Demo_app/smart/vendor/gems/mislav-will_paginate-2.2.3/lib/will_paginate/finder.rb:164:in `method_missing'
from /home/bacancy/.rvm/gems/ruby-1.8.7-p370/gems/authlogic-3.1.3/lib/authlogic/acts_as_authentic/base.rb:7:in `included'
from /home/bacancy/.rvm/gems/ruby-1.8.7-p370/gems/authlogic-3.1.3/lib/authlogic/acts_as_authentic/base.rb:6:in `class_eval'
from /home/bacancy/.rvm/gems/ruby-1.8.7-p370/gems/authlogic-3.1.3/lib/authlogic/acts_as_authentic/base.rb:6:in `included'
from /home/bacancy/.rvm/gems/ruby-1.8.7-p370/gems/authlogic-3.1.3/lib/authlogic/acts_as_authentic/base.rb:97:in `include'
from /home/bacancy/.rvm/gems/ruby-1.8.7-p370/gems/authlogic-3.1.3/lib/authlogic/acts_as_authentic/base.rb:97:in `send'
from /home/bacancy/.rvm/gems/ruby-1.8.7-p370/gems/authlogic-3.1.3/lib/authlogic/acts_as_authentic/base.rb:97
from /home/bacancy/.rvm/rubies/ruby-1.8.7-p370/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `gem_original_require'
from /home/bacancy/.rvm/rubies/ruby-1.8.7-p370/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `require'
from /home/bacancy/Demo_app/smart/vendor/radiant/vendor/rails/activesupport/lib/active_support/dependencies.rb:158:in `require'
from /home/bacancy/.rvm/gems/ruby-1.8.7-p370/gems/authlogic-3.1.3/lib/authlogic.rb:59
from /home/bacancy/.rvm/gems/ruby-1.8.7-p370/gems/authlogic-3.1.3/lib/authlogic.rb:6:in `each'
from /home/bacancy/.rvm/gems/ruby-1.8.7-p370/gems/authlogic-3.1.3/lib/authlogic.rb:6
from /home/bacancy/.rvm/rubies/ruby-1.8.7-p370/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `gem_original_require'
from /home/bacancy/.rvm/rubies/ruby-1.8.7-p370/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `require'
from /home/bacancy/Demo_app/smart/vendor/radiant/vendor/rails/activesupport/lib/active_support/dependencies.rb:158:in `require'
from /home/bacancy/.rvm/gems/ruby-1.8.7-p370/gems/authlogic-3.1.3/rails/init.rb:1:in `evaluate_init_rb'
from /home/bacancy/Demo_app/smart/vendor/radiant/vendor/rails/railties/lib/rails/plugin.rb:158:in `evaluate_init_rb'
from /home/bacancy/Demo_app/smart/vendor/radiant/vendor/rails/activesupport/lib/active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings'
from /home/bacancy/Demo_app/smart/vendor/radiant/vendor/rails/railties/lib/rails/plugin.rb:154:in `evaluate_init_rb'
from /home/bacancy/Demo_app/smart/vendor/radiant/vendor/rails/railties/lib/rails/plugin.rb:48:in `load'
from /home/bacancy/Demo_app/smart/vendor/radiant/vendor/rails/railties/lib/rails/plugin/loader.rb:38:in `load_plugins'
from /home/bacancy/Demo_app/smart/vendor/radiant/vendor/rails/railties/lib/rails/plugin/loader.rb:37:in `each'
from /home/bacancy/Demo_app/smart/vendor/radiant/vendor/rails/railties/lib/rails/plugin/loader.rb:37:in `load_plugins'
from /home/bacancy/Demo_app/smart/vendor/radiant/vendor/rails/railties/lib/initializer.rb:369:in `load_plugins'
from /home/bacancy/Demo_app/smart/vendor/radiant/lib/radiant/initializer.rb:175:in `load_plugins'
from /home/bacancy/Demo_app/smart/vendor/radiant/vendor/rails/railties/lib/initializer.rb:165:in `process'
from /home/bacancy/Demo_app/smart/vendor/radiant/vendor/rails/railties/lib/initializer.rb:113:in `send'
from /home/bacancy/Demo_app/smart/vendor/radiant/vendor/rails/railties/lib/initializer.rb:113:in `run'
from /home/bacancy/Demo_app/smart/vendor/radiant/lib/radiant/initializer.rb:148:in `run'
from /home/bacancy/Demo_app/smart/config/environment.rb:12
from /home/bacancy/.rvm/rubies/ruby-1.8.7-p370/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `gem_original_require'
from /home/bacancy/.rvm/rubies/ruby-1.8.7-p370/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `require'
from /home/bacancy/Demo_app/smart/vendor/radiant/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
from /home/bacancy/Demo_app/smart/vendor/radiant/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in'
from /home/bacancy/Demo_app/smart/vendor/radiant/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
from /home/bacancy/Demo_app/smart/vendor/radiant/vendor/rails/railties/lib/commands/server.rb:84
from /home/bacancy/.rvm/rubies/ruby-1.8.7-p370/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `gem_original_require'
from /home/bacancy/.rvm/rubies/ruby-1.8.7-p370/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `require'
from script/server:3 

id there any gem dependency? or versions that i have used is dependable to each other or not?
i reinstall radiant twice. 
Thank you in advance

Thota praneeth

unread,
Oct 16, 2012, 7:29:50 AM10/16/12
to rubyonra...@googlegroups.com
have you tried this command : rake gems:refresh_specs
and have you install the paginate gem (gem install tism-will_paginate)

Norbert Melzer

unread,
Oct 16, 2012, 7:47:24 AM10/16/12
to rubyonra...@googlegroups.com

From authlogic readme:

** Please note the latest version is compatible with rails 3 only. Please see the rails2 branch for Rails 2 compatibility.

Did you used the rails branch or have you installed it as a gem? The gem will be probably incompatible with your rails version.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonra...@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/L523btZSCYMJ.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Nirav

unread,
Oct 16, 2012, 8:34:50 AM10/16/12
to rubyonra...@googlegroups.com
hi norbert,

Thanx for reply,

actually i have existing application and i have to configure it locally as well as on server so it needs authlogic gem but i have install authlogic 2.1.1 which is compatible to rails 2.3.4.  and if i am wrong, please guide me. is my direction is write?

Thanking you,
Nirav  

Nirav

unread,
Oct 16, 2012, 8:39:39 AM10/16/12
to rubyonra...@googlegroups.com
Hi Norbert,

Thank You for reply,

i have another problem facing in application. do you help me to figure it out. 

see the link above. please give me some needful  tricks to solve it. 

Nirav

unread,
Oct 16, 2012, 8:46:04 AM10/16/12
to rubyonra...@googlegroups.com
Hi Praneeth,

yes i installed will_paginate version (3.0.3). and issue is in environment.rb . thanking you 

but now i facing problem related to authentication of application
when i click on submit button above error in the link is generated. can you give me some useful guidance? do you know how to set up link in radiant on site?
Reply all
Reply to author
Forward
0 new messages