I've installed LoginEngine, and the basics appear to work. However, when I
attempt to recover my password, I end up with the failure you see at the end
of this message. Now, looking at the code, this seems like it should always
happen (unless Rails is doing magic I don't know about -- always a
possibility).
Also, be aware, that this user was created as part of a migration from other
data. Looking at the user in the database, thing seem reasonable to me.
------failure---------
You have a nil object when you didn't expect it!
You might have expected an instance of ActiveRecord::Base.
The error occured while evaluating nil.errors
Extracted source (around line #4):
1: <div title="<%= title_helper %>" class="form">
2: <h3>Change Password</h3>
3:
4: <%= error_messages_for 'user' %>
5:
6: <div class="form-padding">
7: <p>Enter your new password in the fields below and click 'Change
Password' to have a new password sent to your email inbox.</p>
RAILS_ROOT: script/../config/..
Application Trace | Framework Trace | Full Trace
./script/../config/../vendor/rails/actionpack/lib/action_view/helpers/active_record_helper.rb:106:in
`error_messages_for'
#{RAILS_ROOT}/vendor/plugins/login_engine/app/views/user/change_password.rhtml:4
./script/../config/../vendor/rails/actionpack/lib/action_view/base.rb:268:in
`compile_and_render_template'
./script/../config/../vendor/rails/actionpack/lib/action_view/base.rb:244:in
`render_template'
./script/../config/../vendor/rails/actionpack/lib/action_view/base.rb:205:in
`render_file'
./script/../config/../vendor/rails/actionpack/lib/action_controller/base.rb:655:in
`render_file'
./script/../config/../vendor/rails/actionpack/lib/action_controller/base.rb:595:in
`render_with_no_layout'
./script/../config/../vendor/rails/actionpack/lib/action_controller/layout.rb:220:in
`render_without_benchmark'
./script/../config/../vendor/rails/actionpack/lib/action_controller/benchmarking.rb:53:in
`render'
/usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
./script/../config/../vendor/rails/actionpack/lib/action_controller/benchmarking.rb:53:in
`render'
./script/../config/../vendor/plugins/login_engine/app/controllers/user_controller.rb:247:in
`generate_filled_in'
./script/../config/../vendor/plugins/login_engine/app/controllers/user_controller.rb:69:in
`change_password'
./script/../config/../vendor/rails/actionpack/lib/action_controller/base.rb:853:in
`perform_action_without_filters'
./script/../config/../vendor/rails/actionpack/lib/action_controller/filters.rb:332:in
`perform_action_without_benchmark'
./script/../config/../vendor/rails/actionpack/lib/action_controller/benchmarking.rb:69:in
`perform_action_without_rescue'
/usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
./script/../config/../vendor/rails/actionpack/lib/action_controller/benchmarking.rb:69:in
`perform_action_without_rescue'
./script/../config/../vendor/rails/actionpack/lib/action_controller/rescue.rb:82:in
`perform_action'
./script/../config/../vendor/rails/actionpack/lib/action_controller/base.rb:369:in
`process_without_session_management_support'
./script/../config/../vendor/rails/actionpack/lib/action_controller/session_management.rb:116:in
`process'
./script/../config/../vendor/rails/railties/lib/dispatcher.rb:38:in `dispatch'
./script/../config/../vendor/rails/railties/lib/webrick_server.rb:117:in
`handle_dispatch'
./script/../config/../vendor/rails/railties/lib/webrick_server.rb:83:in
`service'
/usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
/usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
/usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
/usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
/usr/lib/ruby/1.8/webrick/server.rb:95:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:92:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:23:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:82:in `start'
./script/../config/../vendor/rails/railties/lib/webrick_server.rb:69:in
`dispatch'
./script/../config/../vendor/rails/railties/lib/commands/servers/webrick.rb:59
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require'
./script/../config/../vendor/rails/activesupport/lib/active_support/dependencies.rb:214:in
`require'
./script/../config/../vendor/rails/railties/lib/commands/server.rb:28
./script/server:3
_______________________________________________
engine-users mailing list
[email protected]
http://lists.rails-engines.org/listinfo.cgi/engine-users-rails-engines.org