Forum: Ruby on Rails TaskThis undefined method `remembrall_expires' for #<User:0x

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
73b9181f85859ef89a82a3b58ef799a0?d=identicon&s=25 Fabio Vitale (fabvit)
on 2006-04-10 12:40
This happens before each login attempt.
Please note that if I click on the refresh button of my browser I then
login succesfully.
Any hint?
--
fabio vitale


 NoMethodError in AccountController#login

undefined method `remembrall_expires' for #<User:0x351f238>

RAILS_ROOT: ./script/../config/..
Application Trace | Framework Trace | Full Trace

C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.1/lib/active_record/base.rb:1792:in
`method_missing'
#{RAILS_ROOT}/lib/auto_login.rb:39:in `active_remembrall?'
#{RAILS_ROOT}/lib/auto_login.rb:47:in `create_remembrall'
#{RAILS_ROOT}/app/controllers/account_controller.rb:17:in `login'

C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.1/lib/active_record/base.rb:1792:in
`method_missing'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/base.rb:910:in
`send'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/base.rb:910:in
`perform_action_without_filters'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/filters.rb:368:in
`perform_action_without_benchmark'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/benchmarking.rb:69:in
`perform_action_without_rescue'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/benchmarking.rb:69:in
`measure'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/benchmarking.rb:69:in
`perform_action_without_rescue'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/rescue.rb:82:in
`perform_action'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/base.rb:381:in
`send'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/base.rb:381:in
`process_without_filters'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/filters.rb:377:in
`process_without_session_management_support'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/session_management.rb:117:in
`process'
C:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.1/lib/dispatcher.rb:38:in
`dispatch'
C:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.1/lib/webrick_server.rb:115:in
`handle_dispatch'
C:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.1/lib/webrick_server.rb:81:in
`service'
C:/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
C:/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
C:/ruby/lib/ruby/1.8/webrick/server.rb:155:in `start_thread'
C:/ruby/lib/ruby/1.8/webrick/server.rb:144:in `start'
C:/ruby/lib/ruby/1.8/webrick/server.rb:144:in `start_thread'
C:/ruby/lib/ruby/1.8/webrick/server.rb:94:in `start'
C:/ruby/lib/ruby/1.8/webrick/server.rb:89:in `each'
C:/ruby/lib/ruby/1.8/webrick/server.rb:89:in `start'
C:/ruby/lib/ruby/1.8/webrick/server.rb:79:in `start'
C:/ruby/lib/ruby/1.8/webrick/server.rb:79:in `start'
C:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.1/lib/webrick_server.rb:67:in
`dispatch'
C:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.1/lib/commands/servers/webrick.rb:59
C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in
`require__'
C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in
`require'
C:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in
`require'
C:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.1/lib/commands/server.rb:30
C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in
`require__'
C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in
`require'
C:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in
`require'
script/server:3

C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.1/lib/active_record/base.rb:1792:in
`method_missing'
#{RAILS_ROOT}/lib/auto_login.rb:39:in `active_remembrall?'
#{RAILS_ROOT}/lib/auto_login.rb:47:in `create_remembrall'
#{RAILS_ROOT}/app/controllers/account_controller.rb:17:in `login'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/base.rb:910:in
`send'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/base.rb:910:in
`perform_action_without_filters'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/filters.rb:368:in
`perform_action_without_benchmark'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/benchmarking.rb:69:in
`perform_action_without_rescue'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/benchmarking.rb:69:in
`measure'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/benchmarking.rb:69:in
`perform_action_without_rescue'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/rescue.rb:82:in
`perform_action'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/base.rb:381:in
`send'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/base.rb:381:in
`process_without_filters'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/filters.rb:377:in
`process_without_session_management_support'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/session_management.rb:117:in
`process'
C:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.1/lib/dispatcher.rb:38:in
`dispatch'
C:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.1/lib/webrick_server.rb:115:in
`handle_dispatch'
C:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.1/lib/webrick_server.rb:81:in
`service'
C:/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
C:/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
C:/ruby/lib/ruby/1.8/webrick/server.rb:155:in `start_thread'
C:/ruby/lib/ruby/1.8/webrick/server.rb:144:in `start'
C:/ruby/lib/ruby/1.8/webrick/server.rb:144:in `start_thread'
C:/ruby/lib/ruby/1.8/webrick/server.rb:94:in `start'
C:/ruby/lib/ruby/1.8/webrick/server.rb:89:in `each'
C:/ruby/lib/ruby/1.8/webrick/server.rb:89:in `start'
C:/ruby/lib/ruby/1.8/webrick/server.rb:79:in `start'
C:/ruby/lib/ruby/1.8/webrick/server.rb:79:in `start'
C:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.1/lib/webrick_server.rb:67:in
`dispatch'
C:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.1/lib/commands/servers/webrick.rb:59
C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in
`require__'
C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in
`require'
C:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in
`require'
C:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.1/lib/commands/server.rb:30
C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in
`require__'
C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in
`require'
C:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in
`require'
script/server:3

Request

Parameters: {"user_login"=>"admin", "user_password"=>"admin",
"login"=>"Login", "remember_me"=>"0"}

Show session dump

---
:user: &id001 !ruby/object:User
  attributes:
    created_on: 2006-04-08 19:50:58
    last_login: 2006-04-10 12:37:29.044000 +02:00
    name: admin
    updated_on: 2006-04-10 12:37:29.104000 +02:00
    admin: "0"
    id: "1"
    remembrall:
    prefs: >2-
      ---

      animate: true

      show_addtask: false

      show_completed: false

      show_notes: false

    password: 68e02f78cad0acd054c06c84eebd80e1a7b0eb0d
    login: admin
    remembrall_expired:
    email: fabio@sferaconsulting.it
  errors: !ruby/object:ActiveRecord::Errors
    base: *id001
    errors: {}
  new_record_before_save:
:user_prefs:
  animate: true
  show_addtask: false
  show_notes: false
  show_completed: false
flash: !ruby/hash:ActionController::Flash::FlashHash {}

Response
Headers: {"cookie"=>[], "Cache-Control"=>"no-cache"}
This topic is locked and can not be replied to.