{"action":"created","issue":{"url":"https://api.github.com/repos/plataformatec/devise/issues/2963","labels_url":"https://api.github.com/repos/plataformatec/devise/issues/2963/labels{/name}","comments_url":"https://api.github.com/repos/plataformatec/devise/issues/2963/comments","events_url":"https://api.github.com/repos/plataformatec/devise/issues/2963/events","html_url":"https://github.com/plataformatec/devise/issues/2963","id":30797209,"number":2963,"title":"undefined method `serialize_from_session'","user":{"login":"lxsameer","id":53159,"avatar_url":"https://avatars.githubusercontent.com/u/53159?v=3","gravatar_id":"","url":"https://api.github.com/users/lxsameer","html_url":"https://github.com/lxsameer","followers_url":"https://api.github.com/users/lxsameer/followers","following_url":"https://api.github.com/users/lxsameer/following{/other_user}","gists_url":"https://api.github.com/users/lxsameer/gists{/gist_id}","starred_url":"https://api.github.com/users/lxsameer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lxsameer/subscriptions","organizations_url":"https://api.github.com/users/lxsameer/orgs","repos_url":"https://api.github.com/users/lxsameer/repos","events_url":"https://api.github.com/users/lxsameer/events{/privacy}","received_events_url":"https://api.github.com/users/lxsameer/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2014-04-03T17:46:07Z","updated_at":"2015-03-23T21:38:10Z","closed_at":"2014-04-03T18:51:32Z","body":"My `devise` setup is fine and everything works fine, But when i edit any ruby file in project and refresh the page I get this error:\r\n\r\n```\r\nNoMethodError - undefined method `serialize_from_session' for #<Class:0x007ff8afcc15f0>:\r\n  activerecord (4.0.4) lib/active_record/dynamic_matchers.rb:22:in `method_missing'\r\n  devise (3.2.4) lib/devise.rb:462:in `block (2 levels) in configure_warden!'\r\n  warden (1.2.3) lib/warden/session_serializer.rb:34:in `fetch'\r\n  warden (1.2.3) lib/warden/proxy.rb:212:in `user'\r\n  warden (1.2.3) lib/warden/proxy.rb:318:in `_perform_authentication'\r\n  warden (1.2.3) lib/warden/proxy.rb:104:in `authenticate'\r\n  devise (3.2.4) lib/devise/controllers/helpers.rb:58:in `current_user'\r\n  devise (3.2.4) lib/devise/controllers/helpers.rb:54:in `user_signed_in?'\r\n  /home/lxsameer/src/Yellowen/Faalis/app/controllers/faalis/dashboard_controller.rb:23:in `index'\r\n  actionpack (4.0.4) lib/action_controller/metal/implicit_render.rb:4:in `send_action'\r\n  actionpack (4.0.4) lib/abstract_controller/base.rb:189:in `process_action'\r\n  actionpack (4.0.4) lib/action_controller/metal/rendering.rb:10:in `process_action'\r\n  actionpack (4.0.4) lib/abstract_controller/callbacks.rb:18:in `block in process_action'\r\n  activesupport (4.0.4) lib/active_support/callbacks.rb:383:in `_run__2772304466960383216__process_action__callbacks'\r\n  activesupport (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'\r\n  actionpack (4.0.4) lib/abstract_controller/callbacks.rb:17:in `process_action'\r\n  actionpack (4.0.4) lib/action_controller/metal/rescue.rb:29:in `process_action'\r\n  actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'\r\n  activesupport (4.0.4) lib/active_support/notifications.rb:159:in `block in instrument'\r\n  activesupport (4.0.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument'\r\n  activesupport (4.0.4) lib/active_support/notifications.rb:159:in `instrument'\r\n  actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action'\r\n  actionpack (4.0.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'\r\n  activerecord (4.0.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action'\r\n  actionpack (4.0.4) lib/abstract_controller/base.rb:136:in `process'\r\n  actionpack (4.0.4) lib/abstract_controller/rendering.rb:44:in `process'\r\n  actionpack (4.0.4) lib/action_controller/metal.rb:195:in `dispatch'\r\n  actionpack (4.0.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'\r\n  actionpack (4.0.4) lib/action_controller/metal.rb:231:in `block in action'\r\n  actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in `dispatch'\r\n  actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:48:in `call'\r\n  actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'\r\n  actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'\r\n  actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'\r\n  railties (4.0.4) lib/rails/engine.rb:511:in `call'\r\n  railties (4.0.4) lib/rails/railtie/configurable.rb:30:in `method_missing'\r\n  actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'\r\n  actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'\r\n  actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'\r\n  meta_request (0.2.8) lib/meta_request/middlewares/app_request_handler.rb:13:in `call'\r\n  rack-contrib (1.1.0) lib/rack/contrib/response_headers.rb:17:in `call'\r\n  meta_request (0.2.8) lib/meta_request/middlewares/headers.rb:16:in `call'\r\n  meta_request (0.2.8) lib/meta_request/middlewares/meta_request_handler.rb:13:in `call'\r\n  /home/lxsameer/src/Yellowen/site_framework/lib/site_framework/middleware.rb:51:in `call'\r\n  warden (1.2.3) lib/warden/manager.rb:35:in `block in call'\r\n  warden (1.2.3) lib/warden/manager.rb:34:in `call'\r\n  rack (1.5.2) lib/rack/etag.rb:23:in `call'\r\n  rack (1.5.2) lib/rack/conditionalget.rb:25:in `call'\r\n  rack (1.5.2) lib/rack/head.rb:11:in `call'\r\n  actionpack (4.0.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call'\r\n  actionpack (4.0.4) lib/action_dispatch/middleware/flash.rb:241:in `call'\r\n  rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'\r\n  rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'\r\n  actionpack (4.0.4) lib/action_dispatch/middleware/cookies.rb:486:in `call'\r\n  activerecord (4.0.4) lib/active_record/query_cache.rb:36:in `call'\r\n  activerecord (4.0.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'\r\n  activerecord (4.0.4) lib/active_record/migration.rb:373:in `call'\r\n  actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'\r\n  activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__4034759106981339558__call__callbacks'\r\n  activesupport (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'\r\n  actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call'\r\n  actionpack (4.0.4) lib/action_dispatch/middleware/reloader.rb:64:in `call'\r\n  actionpack (4.0.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'\r\n  better_errors (1.1.0) lib/better_errors/middleware.rb:84:in `protected_app_call'\r\n  better_errors (1.1.0) lib/better_errors/middleware.rb:79:in `better_errors_call'\r\n  better_errors (1.1.0) lib/better_errors/middleware.rb:56:in `call'\r\n  actionpack (4.0.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'\r\n  actionpack (4.0.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'\r\n  railties (4.0.4) lib/rails/rack/logger.rb:38:in `call_app'\r\n  railties (4.0.4) lib/rails/rack/logger.rb:20:in `block in call'\r\n  activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `block in tagged'\r\n  activesupport (4.0.4) lib/active_support/tagged_logging.rb:26:in `tagged'\r\n  activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `tagged'\r\n  railties (4.0.4) lib/rails/rack/logger.rb:20:in `call'\r\n  actionpack (4.0.4) lib/action_dispatch/middleware/request_id.rb:21:in `call'\r\n  rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'\r\n  rack (1.5.2) lib/rack/runtime.rb:17:in `call'\r\n  activesupport (4.0.4) lib/active_support/cache/strategy/local_cache.rb:83:in `call'\r\n  rack (1.5.2) lib/rack/lock.rb:17:in `call'\r\n  actionpack (4.0.4) lib/action_dispatch/middleware/static.rb:64:in `call'\r\n  rack (1.5.2) lib/rack/sendfile.rb:112:in `call'\r\n  railties (4.0.4) lib/rails/engine.rb:511:in `call'\r\n  railties (4.0.4) lib/rails/application.rb:97:in `call'\r\n  rack (1.5.2) lib/rack/lock.rb:17:in `call'\r\n  rack (1.5.2) lib/rack/content_length.rb:14:in `call'\r\n  rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'\r\n  /home/lxsameer/.rbenv/versions/2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service'\r\n  /home/lxsameer/.rbenv/versions/2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run'\r\n  /home/lxsameer/.rbenv/versions/2.1.0/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread'\r\n```\r\nIt does not matter what controller called each call will produce this error.\r\n\r\nIt's wired, isn't it ?"},"comment":{"url":"https://api.github.com/repos/plataformatec/devise/issues/comments/85207624","html_url":"https://github.com/plataformatec/devise/issues/2963#issuecomment-85207624","issue_url":"https://api.github.com/repos/plataformatec/devise/issues/2963","id":85207624,"user":{"login":"naveed-ahmad","id":701567,"avatar_url":"https://avatars.githubusercontent.com/u/701567?v=3","gravatar_id":"","url":"https://api.github.com/users/naveed-ahmad","html_url":"https://github.com/naveed-ahmad","followers_url":"https://api.github.com/users/naveed-ahmad/followers","following_url":"https://api.github.com/users/naveed-ahmad/following{/other_user}","gists_url":"https://api.github.com/users/naveed-ahmad/gists{/gist_id}","starred_url":"https://api.github.com/users/naveed-ahmad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/naveed-ahmad/subscriptions","organizations_url":"https://api.github.com/users/naveed-ahmad/orgs","repos_url":"https://api.github.com/users/naveed-ahmad/repos","events_url":"https://api.github.com/users/naveed-ahmad/events{/privacy}","received_events_url":"https://api.github.com/users/naveed-ahmad/received_events","type":"User","site_admin":false},"created_at":"2015-03-23T21:38:10Z","updated_at":"2015-03-23T21:38:10Z","body":"Hmm Looks like you've not added `devise :database_authenticatable, ...` in your model :) can you confirm? "}}