Changeset 59


Ignore:
Timestamp:
May 16, 2008, 10:42:38 PM (14 years ago)
Author:
KOBAYASHI, Shinji
Message:

login window created

Location:
ruby/trunk/rails/cancerehr
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • ruby/trunk/rails/cancerehr/app/controllers/application.rb

    r12 r59  
    77  # See ActionController::RequestForgeryProtection for details
    88  # Uncomment the :secret if you're not using the cookie session store
    9   protect_from_forgery # :secret => 'c3e807951661961322016dc6ca949e09'
     9#  protect_from_forgery # :secret => 'c3e807951661961322016dc6ca949e09'
    1010end
  • ruby/trunk/rails/cancerehr/app/controllers/login_controller.rb

    r57 r59  
    44    @user = User.new(params[:user])
    55    if request.post? and @user.save
    6       flash.now[:notice] = "Created user:#{@user.name}."
     6      flash.now[:notice] = "User:#{@user.name} created."
    77      @user = User.new
    88    end
     
    1212    session[:user_id] = nil
    1313    if request.post?
    14       user = User.authenticate(params[:name], params[:passord])
     14      user = User.authenticate(params[:name], params[:password])
    1515      if user
    1616        session[:user_id] = user.id
     
    2626
    2727  def index
     28
    2829  end
    2930
  • ruby/trunk/rails/cancerehr/app/models/user.rb

    r57 r59  
    2424    user = self.find_by_name(name)
    2525    if user
    26       expected_passowrd = encrypted_password(passowrd, user.salt)
    27       if user.hashed_passwd != expected_passowrd
     26      expected_password = encrypted_password(password, user.salt)
     27      if user.hashed_passwd != expected_password
    2828        user = nil
    2929      end
  • ruby/trunk/rails/cancerehr/log/development.log

    r57 r59  
    28232823Rendering login/add_user
    28242824Completed in 0.08076 (12 reqs/sec) | Rendering: 0.00530 (6%) | DB: 0.00047 (0%) | 200 OK [http://localhost/login/add_user]
     2825
     2826
     2827Processing LoginController#add_user (for 127.0.0.1 at 2008-05-16 22:14:56) [GET]
     2828  Session ID: BAh7BzoMY3NyZl9pZCIlOGY4YzgyNGZmYzhhNzkyZDEzYjAyMDk3ZGVlY2Nl%0AOGIiCmZsYXNoSUM6J0FjdGlvbkNvbnRyb2xsZXI6OkZsYXNoOjpGbGFzaEhh%0Ac2h7AAY6CkB1c2VkewA%3D--27bb4eb0184f1d3064c0fd2f11447e0059195ec7
     2829  Parameters: {"action"=>"add_user", "controller"=>"login"}
     2830Rendering login/add_user
     2831Completed in 0.07590 (13 reqs/sec) | Rendering: 0.00267 (3%) | DB: 0.00000 (0%) | 200 OK [http://localhost/login/add_user]
     2832
     2833
     2834Processing LoginController#login (for 127.0.0.1 at 2008-05-16 22:15:01) [GET]
     2835  Session ID: BAh7BzoMY3NyZl9pZCIlOGY4YzgyNGZmYzhhNzkyZDEzYjAyMDk3ZGVlY2Nl%0AOGIiCmZsYXNoSUM6J0FjdGlvbkNvbnRyb2xsZXI6OkZsYXNoOjpGbGFzaEhh%0Ac2h7AAY6CkB1c2VkewA%3D--27bb4eb0184f1d3064c0fd2f11447e0059195ec7
     2836  Parameters: {"action"=>"login", "controller"=>"login"}
     2837Rendering login/login
     2838Completed in 0.00471 (212 reqs/sec) | Rendering: 0.00250 (53%) | DB: 0.00000 (0%) | 200 OK [http://localhost/login/login]
     2839
     2840
     2841Processing LoginController#login (for 127.0.0.1 at 2008-05-16 22:15:15) [POST]
     2842  Session ID: BAh7CDoMdXNlcl9pZDA6DGNzcmZfaWQiJThmOGM4MjRmZmM4YTc5MmQxM2Iw%0AMjA5N2RlZWNjZThiIgpmbGFzaElDOidBY3Rpb25Db250cm9sbGVyOjpGbGFz%0AaDo6Rmxhc2hIYXNoewAGOgpAdXNlZHsA--0db3c15de2ffbc55a6075dd03739fb3b6c78daef
     2843  Parameters: {"name"=>"skoba", "commit"=>"Login", "authenticity_token"=>"e7e0df2215d122c93fcf3757bbc8092e22718a20", "action"=>"login", "controller"=>"login", "password"=>"sg2008"}
     2844  [4;35;1mUser Load (0.000371)[0m   [0mSELECT * FROM users WHERE (users."name" = 'skoba') LIMIT 1[0m
     2845  [4;36;1mSQL (0.000361)[0m   [0;1m SELECT name
     2846 FROM sqlite_master
     2847 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
     2848[0m
     2849
     2850
     2851NameError (undefined local variable or method `passowrd' for #<Class:0x9157c4c>):
     2852    /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/base.rb:1532:in `method_missing'
     2853    /app/models/user.rb:26:in `authenticate'
     2854    /app/controllers/login_controller.rb:14:in `login'
     2855    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:1158:in `send'
     2856    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:1158:in `perform_action_without_filters'
     2857    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/filters.rb:697:in `call_filters'
     2858    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/filters.rb:689:in `perform_action_without_benchmark'
     2859    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
     2860    /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure'
     2861    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
     2862    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/rescue.rb:199:in `perform_action_without_caching'
     2863    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/caching.rb:678:in `perform_action'
     2864    /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in `cache'
     2865    /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/query_cache.rb:8:in `cache'
     2866    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/caching.rb:677:in `perform_action'
     2867    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:524:in `send'
     2868    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:524:in `process_without_filters'
     2869    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/filters.rb:685:in `process_without_session_management_support'
     2870    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/session_management.rb:123:in `process'
     2871    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:388:in `process'
     2872    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:171:in `handle_request'
     2873    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:115:in `dispatch'
     2874    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:126:in `dispatch_cgi'
     2875    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:9:in `dispatch'
     2876    /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb:112:in `handle_dispatch'
     2877    /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb:78:in `service'
     2878    /usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
     2879    /usr/local/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
     2880    /usr/local/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
     2881    /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start'
     2882    /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
     2883    /usr/local/lib/ruby/1.8/webrick/server.rb:95:in `start'
     2884    /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `each'
     2885    /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `start'
     2886    /usr/local/lib/ruby/1.8/webrick/server.rb:23:in `start'
     2887    /usr/local/lib/ruby/1.8/webrick/server.rb:82:in `start'
     2888    /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb:62:in `dispatch'
     2889    /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/servers/webrick.rb:66
     2890    /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
     2891    /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
     2892    /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:496:in `require'
     2893    /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:342:in `new_constants_in'
     2894    /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:496:in `require'
     2895    /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/server.rb:39
     2896    /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
     2897    /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
     2898    script/server:3
     2899
     2900Rendering /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/templates/rescues/layout.erb (internal_server_error)
     2901
     2902
     2903Processing LoginController#login (for 127.0.0.1 at 2008-05-16 22:23:55) [POST]
     2904  Session ID: BAh7CDoMdXNlcl9pZDA6DGNzcmZfaWQiJThmOGM4MjRmZmM4YTc5MmQxM2Iw%0AMjA5N2RlZWNjZThiIgpmbGFzaElDOidBY3Rpb25Db250cm9sbGVyOjpGbGFz%0AaDo6Rmxhc2hIYXNoewAGOgpAdXNlZHsA--0db3c15de2ffbc55a6075dd03739fb3b6c78daef
     2905  Parameters: {"name"=>"skoba", "commit"=>"Login", "authenticity_token"=>"e7e0df2215d122c93fcf3757bbc8092e22718a20", "action"=>"login", "controller"=>"login", "password"=>"sg2008"}
     2906  [4;35;1mUser Load (0.000392)[0m   [0mSELECT * FROM users WHERE (users."name" = 'skoba') LIMIT 1[0m
     2907  [4;36;1mSQL (0.000286)[0m   [0;1m SELECT name
     2908 FROM sqlite_master
     2909 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
     2910[0m
     2911
     2912
     2913NameError (undefined local variable or method `passowrd' for #<Class:0x8f5032c>):
     2914    /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/base.rb:1532:in `method_missing'
     2915    /app/models/user.rb:26:in `authenticate'
     2916    /app/controllers/login_controller.rb:14:in `login'
     2917    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:1158:in `send'
     2918    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:1158:in `perform_action_without_filters'
     2919    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/filters.rb:697:in `call_filters'
     2920    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/filters.rb:689:in `perform_action_without_benchmark'
     2921    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
     2922    /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure'
     2923    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
     2924    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/rescue.rb:199:in `perform_action_without_caching'
     2925    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/caching.rb:678:in `perform_action'
     2926    /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in `cache'
     2927    /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/query_cache.rb:8:in `cache'
     2928    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/caching.rb:677:in `perform_action'
     2929    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:524:in `send'
     2930    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:524:in `process_without_filters'
     2931    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/filters.rb:685:in `process_without_session_management_support'
     2932    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/session_management.rb:123:in `process'
     2933    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:388:in `process'
     2934    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:171:in `handle_request'
     2935    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:115:in `dispatch'
     2936    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:126:in `dispatch_cgi'
     2937    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:9:in `dispatch'
     2938    /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb:112:in `handle_dispatch'
     2939    /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb:78:in `service'
     2940    /usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
     2941    /usr/local/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
     2942    /usr/local/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
     2943    /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start'
     2944    /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
     2945    /usr/local/lib/ruby/1.8/webrick/server.rb:95:in `start'
     2946    /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `each'
     2947    /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `start'
     2948    /usr/local/lib/ruby/1.8/webrick/server.rb:23:in `start'
     2949    /usr/local/lib/ruby/1.8/webrick/server.rb:82:in `start'
     2950    /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb:62:in `dispatch'
     2951    /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/servers/webrick.rb:66
     2952    /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
     2953    /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
     2954    /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:496:in `require'
     2955    /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:342:in `new_constants_in'
     2956    /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:496:in `require'
     2957    /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/server.rb:39
     2958    /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
     2959    /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
     2960    script/server:3
     2961
     2962Rendering /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/templates/rescues/layout.erb (internal_server_error)
     2963
     2964
     2965Processing LoginController#login (for 127.0.0.1 at 2008-05-16 22:26:57) [POST]
     2966  Session ID: BAh7CDoMdXNlcl9pZDA6DGNzcmZfaWQiJThmOGM4MjRmZmM4YTc5MmQxM2Iw%0AMjA5N2RlZWNjZThiIgpmbGFzaElDOidBY3Rpb25Db250cm9sbGVyOjpGbGFz%0AaDo6Rmxhc2hIYXNoewAGOgpAdXNlZHsA--0db3c15de2ffbc55a6075dd03739fb3b6c78daef
     2967  Parameters: {"name"=>"skoba", "commit"=>"Login", "authenticity_token"=>"e7e0df2215d122c93fcf3757bbc8092e22718a20", "action"=>"login", "controller"=>"login", "password"=>"sg2008"}
     2968  [4;35;1mUser Load (0.000371)[0m   [0mSELECT * FROM users WHERE (users."name" = 'skoba') LIMIT 1[0m
     2969  [4;36;1mSQL (0.000286)[0m   [0;1m SELECT name
     2970 FROM sqlite_master
     2971 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
     2972[0m
     2973
     2974
     2975NameError (undefined local variable or method `passowrd' for #<Class:0x89eacc0>):
     2976    /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/base.rb:1532:in `method_missing'
     2977    /app/models/user.rb:26:in `authenticate'
     2978    /app/controllers/login_controller.rb:14:in `login'
     2979    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:1158:in `send'
     2980    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:1158:in `perform_action_without_filters'
     2981    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/filters.rb:697:in `call_filters'
     2982    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/filters.rb:689:in `perform_action_without_benchmark'
     2983    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
     2984    /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure'
     2985    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
     2986    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/rescue.rb:199:in `perform_action_without_caching'
     2987    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/caching.rb:678:in `perform_action'
     2988    /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in `cache'
     2989    /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/query_cache.rb:8:in `cache'
     2990    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/caching.rb:677:in `perform_action'
     2991    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:524:in `send'
     2992    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:524:in `process_without_filters'
     2993    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/filters.rb:685:in `process_without_session_management_support'
     2994    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/session_management.rb:123:in `process'
     2995    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:388:in `process'
     2996    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:171:in `handle_request'
     2997    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:115:in `dispatch'
     2998    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:126:in `dispatch_cgi'
     2999    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:9:in `dispatch'
     3000    /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb:112:in `handle_dispatch'
     3001    /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb:78:in `service'
     3002    /usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
     3003    /usr/local/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
     3004    /usr/local/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
     3005    /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start'
     3006    /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
     3007    /usr/local/lib/ruby/1.8/webrick/server.rb:95:in `start'
     3008    /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `each'
     3009    /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `start'
     3010    /usr/local/lib/ruby/1.8/webrick/server.rb:23:in `start'
     3011    /usr/local/lib/ruby/1.8/webrick/server.rb:82:in `start'
     3012    /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb:62:in `dispatch'
     3013    /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/servers/webrick.rb:66
     3014    /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
     3015    /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
     3016    /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:496:in `require'
     3017    /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:342:in `new_constants_in'
     3018    /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:496:in `require'
     3019    /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/server.rb:39
     3020    /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
     3021    /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
     3022    script/server:3
     3023
     3024Rendering /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/templates/rescues/layout.erb (internal_server_error)
     3025
     3026
     3027Processing LoginController#login (for 127.0.0.1 at 2008-05-16 22:28:34) [POST]
     3028  Session ID: BAh7CDoMdXNlcl9pZDA6DGNzcmZfaWQiJThmOGM4MjRmZmM4YTc5MmQxM2Iw%0AMjA5N2RlZWNjZThiIgpmbGFzaElDOidBY3Rpb25Db250cm9sbGVyOjpGbGFz%0AaDo6Rmxhc2hIYXNoewAGOgpAdXNlZHsA--0db3c15de2ffbc55a6075dd03739fb3b6c78daef
     3029  Parameters: {"name"=>"skoba", "commit"=>"Login", "authenticity_token"=>"e7e0df2215d122c93fcf3757bbc8092e22718a20", "action"=>"login", "controller"=>"login", "password"=>"sg2008"}
     3030  [4;35;1mUser Load (0.000365)[0m   [0mSELECT * FROM users WHERE (users."name" = 'skoba') LIMIT 1[0m
     3031  [4;36;1mSQL (0.000285)[0m   [0;1m SELECT name
     3032 FROM sqlite_master
     3033 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
     3034[0m
     3035
     3036
     3037NameError (undefined local variable or method `passowrd' for #<Class:0x91388c4>):
     3038    /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/base.rb:1532:in `method_missing'
     3039    /app/models/user.rb:26:in `authenticate'
     3040    /app/controllers/login_controller.rb:14:in `login'
     3041    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:1158:in `send'
     3042    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:1158:in `perform_action_without_filters'
     3043    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/filters.rb:697:in `call_filters'
     3044    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/filters.rb:689:in `perform_action_without_benchmark'
     3045    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
     3046    /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure'
     3047    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
     3048    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/rescue.rb:199:in `perform_action_without_caching'
     3049    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/caching.rb:678:in `perform_action'
     3050    /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in `cache'
     3051    /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/query_cache.rb:8:in `cache'
     3052    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/caching.rb:677:in `perform_action'
     3053    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:524:in `send'
     3054    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:524:in `process_without_filters'
     3055    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/filters.rb:685:in `process_without_session_management_support'
     3056    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/session_management.rb:123:in `process'
     3057    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:388:in `process'
     3058    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:171:in `handle_request'
     3059    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:115:in `dispatch'
     3060    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:126:in `dispatch_cgi'
     3061    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:9:in `dispatch'
     3062    /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb:112:in `handle_dispatch'
     3063    /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb:78:in `service'
     3064    /usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
     3065    /usr/local/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
     3066    /usr/local/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
     3067    /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start'
     3068    /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
     3069    /usr/local/lib/ruby/1.8/webrick/server.rb:95:in `start'
     3070    /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `each'
     3071    /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `start'
     3072    /usr/local/lib/ruby/1.8/webrick/server.rb:23:in `start'
     3073    /usr/local/lib/ruby/1.8/webrick/server.rb:82:in `start'
     3074    /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb:62:in `dispatch'
     3075    /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/servers/webrick.rb:66
     3076    /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
     3077    /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
     3078    /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:496:in `require'
     3079    /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:342:in `new_constants_in'
     3080    /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:496:in `require'
     3081    /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/server.rb:39
     3082    /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
     3083    /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
     3084    script/server:3
     3085
     3086Rendering /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/templates/rescues/layout.erb (internal_server_error)
     3087
     3088
     3089Processing LoginController#login (for 127.0.0.1 at 2008-05-16 22:28:42) [POST]
     3090  Session ID: BAh7CDoMdXNlcl9pZDA6DGNzcmZfaWQiJThmOGM4MjRmZmM4YTc5MmQxM2Iw%0AMjA5N2RlZWNjZThiIgpmbGFzaElDOidBY3Rpb25Db250cm9sbGVyOjpGbGFz%0AaDo6Rmxhc2hIYXNoewAGOgpAdXNlZHsA--0db3c15de2ffbc55a6075dd03739fb3b6c78daef
     3091  Parameters: {"name"=>"skoba", "commit"=>"Login", "authenticity_token"=>"e7e0df2215d122c93fcf3757bbc8092e22718a20", "action"=>"login", "controller"=>"login", "password"=>"sg2008"}
     3092  [4;35;1mUser Load (0.000373)[0m   [0mSELECT * FROM users WHERE (users."name" = 'skoba') LIMIT 1[0m
     3093  [4;36;1mSQL (0.000280)[0m   [0;1m SELECT name
     3094 FROM sqlite_master
     3095 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
     3096[0m
     3097
     3098
     3099NameError (undefined local variable or method `passowrd' for #<Class:0x8f45120>):
     3100    /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/base.rb:1532:in `method_missing'
     3101    /app/models/user.rb:26:in `authenticate'
     3102    /app/controllers/login_controller.rb:14:in `login'
     3103    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:1158:in `send'
     3104    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:1158:in `perform_action_without_filters'
     3105    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/filters.rb:697:in `call_filters'
     3106    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/filters.rb:689:in `perform_action_without_benchmark'
     3107    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
     3108    /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure'
     3109    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
     3110    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/rescue.rb:199:in `perform_action_without_caching'
     3111    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/caching.rb:678:in `perform_action'
     3112    /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in `cache'
     3113    /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/query_cache.rb:8:in `cache'
     3114    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/caching.rb:677:in `perform_action'
     3115    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:524:in `send'
     3116    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:524:in `process_without_filters'
     3117    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/filters.rb:685:in `process_without_session_management_support'
     3118    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/session_management.rb:123:in `process'
     3119    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:388:in `process'
     3120    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:171:in `handle_request'
     3121    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:115:in `dispatch'
     3122    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:126:in `dispatch_cgi'
     3123    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:9:in `dispatch'
     3124    /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb:112:in `handle_dispatch'
     3125    /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb:78:in `service'
     3126    /usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
     3127    /usr/local/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
     3128    /usr/local/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
     3129    /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start'
     3130    /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
     3131    /usr/local/lib/ruby/1.8/webrick/server.rb:95:in `start'
     3132    /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `each'
     3133    /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `start'
     3134    /usr/local/lib/ruby/1.8/webrick/server.rb:23:in `start'
     3135    /usr/local/lib/ruby/1.8/webrick/server.rb:82:in `start'
     3136    /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb:62:in `dispatch'
     3137    /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/servers/webrick.rb:66
     3138    /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
     3139    /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
     3140    /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:496:in `require'
     3141    /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:342:in `new_constants_in'
     3142    /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:496:in `require'
     3143    /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/server.rb:39
     3144    /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
     3145    /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
     3146    script/server:3
     3147
     3148Rendering /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/templates/rescues/layout.erb (internal_server_error)
     3149
     3150
     3151Processing LoginController#login (for 127.0.0.1 at 2008-05-16 22:29:54) [POST]
     3152  Session ID: BAh7CDoMdXNlcl9pZDA6DGNzcmZfaWQiJThmOGM4MjRmZmM4YTc5MmQxM2Iw%0AMjA5N2RlZWNjZThiIgpmbGFzaElDOidBY3Rpb25Db250cm9sbGVyOjpGbGFz%0AaDo6Rmxhc2hIYXNoewAGOgpAdXNlZHsA--0db3c15de2ffbc55a6075dd03739fb3b6c78daef
     3153  Parameters: {"name"=>"skoba", "commit"=>"Login", "authenticity_token"=>"e7e0df2215d122c93fcf3757bbc8092e22718a20", "action"=>"login", "controller"=>"login", "password"=>"sg2008"}
     3154  [4;35;1mUser Load (0.000365)[0m   [0mSELECT * FROM users WHERE (users."name" = 'skoba') LIMIT 1[0m
     3155
     3156
     3157NoMethodError (You have a nil object when you didn't expect it!
     3158You might have expected an instance of Array.
     3159The error occurred while evaluating nil.+):
     3160    /app/models/user.rb:36:in `encrypted_password'
     3161    /app/models/user.rb:26:in `authenticate'
     3162    /app/controllers/login_controller.rb:14:in `login'
     3163    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:1158:in `send'
     3164    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:1158:in `perform_action_without_filters'
     3165    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/filters.rb:697:in `call_filters'
     3166    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/filters.rb:689:in `perform_action_without_benchmark'
     3167    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
     3168    /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure'
     3169    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
     3170    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/rescue.rb:199:in `perform_action_without_caching'
     3171    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/caching.rb:678:in `perform_action'
     3172    /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in `cache'
     3173    /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/query_cache.rb:8:in `cache'
     3174    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/caching.rb:677:in `perform_action'
     3175    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:524:in `send'
     3176    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:524:in `process_without_filters'
     3177    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/filters.rb:685:in `process_without_session_management_support'
     3178    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/session_management.rb:123:in `process'
     3179    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:388:in `process'
     3180    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:171:in `handle_request'
     3181    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:115:in `dispatch'
     3182    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:126:in `dispatch_cgi'
     3183    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:9:in `dispatch'
     3184    /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb:112:in `handle_dispatch'
     3185    /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb:78:in `service'
     3186    /usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
     3187    /usr/local/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
     3188    /usr/local/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
     3189    /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start'
     3190    /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
     3191    /usr/local/lib/ruby/1.8/webrick/server.rb:95:in `start'
     3192    /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `each'
     3193    /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `start'
     3194    /usr/local/lib/ruby/1.8/webrick/server.rb:23:in `start'
     3195    /usr/local/lib/ruby/1.8/webrick/server.rb:82:in `start'
     3196    /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb:62:in `dispatch'
     3197    /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/servers/webrick.rb:66
     3198    /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
     3199    /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
     3200    /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:496:in `require'
     3201    /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:342:in `new_constants_in'
     3202    /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:496:in `require'
     3203    /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/server.rb:39
     3204    /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
     3205    /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
     3206    script/server:3
     3207
     3208Rendering /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/templates/rescues/layout.erb (internal_server_error)
     3209
     3210
     3211Processing LoginController#login (for 127.0.0.1 at 2008-05-16 22:30:07) [POST]
     3212  Session ID: BAh7CDoMdXNlcl9pZDA6DGNzcmZfaWQiJThmOGM4MjRmZmM4YTc5MmQxM2Iw%0AMjA5N2RlZWNjZThiIgpmbGFzaElDOidBY3Rpb25Db250cm9sbGVyOjpGbGFz%0AaDo6Rmxhc2hIYXNoewAGOgpAdXNlZHsA--0db3c15de2ffbc55a6075dd03739fb3b6c78daef
     3213  Parameters: {"name"=>"skoba", "commit"=>"Login", "authenticity_token"=>"e7e0df2215d122c93fcf3757bbc8092e22718a20", "action"=>"login", "controller"=>"login", "password"=>"sg2008"}
     3214  [4;36;1mUser Load (0.000384)[0m   [0;1mSELECT * FROM users WHERE (users."name" = 'skoba') LIMIT 1[0m
     3215
     3216
     3217NoMethodError (You have a nil object when you didn't expect it!
     3218You might have expected an instance of Array.
     3219The error occurred while evaluating nil.+):
     3220    /app/models/user.rb:36:in `encrypted_password'
     3221    /app/models/user.rb:26:in `authenticate'
     3222    /app/controllers/login_controller.rb:14:in `login'
     3223    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:1158:in `send'
     3224    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:1158:in `perform_action_without_filters'
     3225    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/filters.rb:697:in `call_filters'
     3226    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/filters.rb:689:in `perform_action_without_benchmark'
     3227    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
     3228    /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure'
     3229    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
     3230    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/rescue.rb:199:in `perform_action_without_caching'
     3231    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/caching.rb:678:in `perform_action'
     3232    /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in `cache'
     3233    /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/query_cache.rb:8:in `cache'
     3234    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/caching.rb:677:in `perform_action'
     3235    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:524:in `send'
     3236    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:524:in `process_without_filters'
     3237    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/filters.rb:685:in `process_without_session_management_support'
     3238    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/session_management.rb:123:in `process'
     3239    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:388:in `process'
     3240    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:171:in `handle_request'
     3241    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:115:in `dispatch'
     3242    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:126:in `dispatch_cgi'
     3243    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:9:in `dispatch'
     3244    /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb:112:in `handle_dispatch'
     3245    /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb:78:in `service'
     3246    /usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
     3247    /usr/local/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
     3248    /usr/local/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
     3249    /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start'
     3250    /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
     3251    /usr/local/lib/ruby/1.8/webrick/server.rb:95:in `start'
     3252    /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `each'
     3253    /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `start'
     3254    /usr/local/lib/ruby/1.8/webrick/server.rb:23:in `start'
     3255    /usr/local/lib/ruby/1.8/webrick/server.rb:82:in `start'
     3256    /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb:62:in `dispatch'
     3257    /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/servers/webrick.rb:66
     3258    /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
     3259    /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
     3260    /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:496:in `require'
     3261    /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:342:in `new_constants_in'
     3262    /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:496:in `require'
     3263    /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/server.rb:39
     3264    /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
     3265    /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
     3266    script/server:3
     3267
     3268Rendering /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/templates/rescues/layout.erb (internal_server_error)
     3269
     3270
     3271Processing LoginController#login (for 127.0.0.1 at 2008-05-16 22:33:25) [POST]
     3272  Session ID: BAh7CDoMdXNlcl9pZDA6DGNzcmZfaWQiJThmOGM4MjRmZmM4YTc5MmQxM2Iw%0AMjA5N2RlZWNjZThiIgpmbGFzaElDOidBY3Rpb25Db250cm9sbGVyOjpGbGFz%0AaDo6Rmxhc2hIYXNoewAGOgpAdXNlZHsA--0db3c15de2ffbc55a6075dd03739fb3b6c78daef
     3273  Parameters: {"name"=>"skoba", "commit"=>"Login", "authenticity_token"=>"e7e0df2215d122c93fcf3757bbc8092e22718a20", "action"=>"login", "controller"=>"login", "password"=>"sg2008"}
     3274  [4;35;1mUser Load (0.000412)[0m   [0mSELECT * FROM users WHERE (users."name" = 'skoba') LIMIT 1[0m
     3275
     3276
     3277NoMethodError (You have a nil object when you didn't expect it!
     3278You might have expected an instance of Array.
     3279The error occurred while evaluating nil.+):
     3280    /app/models/user.rb:36:in `encrypted_password'
     3281    /app/models/user.rb:26:in `authenticate'
     3282    /app/controllers/login_controller.rb:14:in `login'
     3283    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:1158:in `send'
     3284    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:1158:in `perform_action_without_filters'
     3285    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/filters.rb:697:in `call_filters'
     3286    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/filters.rb:689:in `perform_action_without_benchmark'
     3287    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
     3288    /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure'
     3289    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
     3290    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/rescue.rb:199:in `perform_action_without_caching'
     3291    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/caching.rb:678:in `perform_action'
     3292    /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in `cache'
     3293    /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/query_cache.rb:8:in `cache'
     3294    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/caching.rb:677:in `perform_action'
     3295    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:524:in `send'
     3296    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:524:in `process_without_filters'
     3297    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/filters.rb:685:in `process_without_session_management_support'
     3298    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/session_management.rb:123:in `process'
     3299    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:388:in `process'
     3300    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:171:in `handle_request'
     3301    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:115:in `dispatch'
     3302    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:126:in `dispatch_cgi'
     3303    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:9:in `dispatch'
     3304    /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb:112:in `handle_dispatch'
     3305    /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb:78:in `service'
     3306    /usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
     3307    /usr/local/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
     3308    /usr/local/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
     3309    /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start'
     3310    /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
     3311    /usr/local/lib/ruby/1.8/webrick/server.rb:95:in `start'
     3312    /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `each'
     3313    /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `start'
     3314    /usr/local/lib/ruby/1.8/webrick/server.rb:23:in `start'
     3315    /usr/local/lib/ruby/1.8/webrick/server.rb:82:in `start'
     3316    /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb:62:in `dispatch'
     3317    /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/servers/webrick.rb:66
     3318    /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
     3319    /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
     3320    /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:496:in `require'
     3321    /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:342:in `new_constants_in'
     3322    /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:496:in `require'
     3323    /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/server.rb:39
     3324    /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
     3325    /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
     3326    script/server:3
     3327
     3328Rendering /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/templates/rescues/layout.erb (internal_server_error)
     3329
     3330
     3331Processing LoginController#login (for 127.0.0.1 at 2008-05-16 22:39:37) [POST]
     3332  Session ID: BAh7CDoMdXNlcl9pZDA6DGNzcmZfaWQiJThmOGM4MjRmZmM4YTc5MmQxM2Iw%0AMjA5N2RlZWNjZThiIgpmbGFzaElDOidBY3Rpb25Db250cm9sbGVyOjpGbGFz%0AaDo6Rmxhc2hIYXNoewAGOgpAdXNlZHsA--0db3c15de2ffbc55a6075dd03739fb3b6c78daef
     3333  Parameters: {"name"=>"skoba", "commit"=>"Login", "authenticity_token"=>"e7e0df2215d122c93fcf3757bbc8092e22718a20", "action"=>"login", "controller"=>"login", "password"=>"sg2008"}
     3334  [4;36;1mUser Load (0.000409)[0m   [0;1mSELECT * FROM users WHERE (users."name" = 'skoba') LIMIT 1[0m
     3335Redirected to http://localhost:3000/login
     3336Completed in 0.07553 (13 reqs/sec) | DB: 0.00041 (0%) | 302 Found [http://localhost/login/login]
     3337
     3338
     3339Processing LoginController#index (for 127.0.0.1 at 2008-05-16 22:39:37) [GET]
     3340  Session ID: BAh7CDoMdXNlcl9pZGkGOgxjc3JmX2lkIiU4ZjhjODI0ZmZjOGE3OTJkMTNi%0AMDIwOTdkZWVjY2U4YiIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxh%0Ac2g6OkZsYXNoSGFzaHsABjoKQHVzZWR7AA%3D%3D--72046ec0ec8f1aba02705669ad74c71ad96a1d58
     3341  Parameters: {"action"=>"index", "controller"=>"login"}
     3342Rendering login/index
     3343Completed in 0.01986 (50 reqs/sec) | Rendering: 0.01734 (87%) | DB: 0.00000 (0%) | 200 OK [http://localhost/login]
Note: See TracChangeset for help on using the changeset viewer.