it doesn’t run : (
no matter where i go in my controller, I am getting this error message:
The Browser View:
Status: 500 Internal Server Error Content-Type: text/html
Application error
The Log:
Processing Base#index (for 127.0.0.1 at 2007-01-31 06:01:31) [GET]
Session ID: 6a380e82bd3afb39dcb57ecfa143766d
Parameters: {“action”=>“index”, “controller”=>“account”}
NoMethodError (undefined method current_user' for User:Class): C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/base.rb:1129:in
method_missing’
/vendor/plugins/userstamp/lib/userstamp.rb:32:in create' C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/base.rb:1718:in
create_or_update_without_callbacks’
.blah blah blah… (if more lines of this would help, let me know…
So it looks like there’s no ‘current_user’ method, when I’ve never had a
current_user column or method in my User model. The whole application
was a copy from a windows environment to another windows…(yes,
everything worked fine before the transfer) I know this ‘current_user’
method is instantiated from @users in the action controller using AAA,
but what gives?
I’ve tried:
- to delete my accounts and user plugin and reinstall the AAA plugin,
-to clear my sessions in the DB. - to temporarily comment out everything in user.rb model
(except for
class User< ActiveRecord::Base
end )
the error is still the same…
Could it have anything to do with migrations? sometimes i skip them and
just created tables, columns, etc directly with mySQL… but i really
doubt this is the problem here…
(i know i should’ve used a deployment tool, but i didn’t…)
I really appreciate anyone who responds…even if you’ve never gotten out
of this and had to start over, so that I don’t waste any more time.
-D