UserStamp plugin

Has anyone received an error when using this new plugin? I cannot do
anything with it installed as apparently there is a constructor missing
‘UserStamp’. I’ve looked at the init.rb file and it seems to all be in
order. I can’t do anything, start WebBRick, generate a model, nothing.
I’ve posted the error at the bottom.

I don’t know enough about plugins to properly troubleshoot though. Do I
need to do something to the environment.rb file? The instructions
didn’t say to, but I’m wondering if I do because I’ve also got Engines
and a couple of engines installed.

If anyone has an idea, I would appreciate any help.

ruby script/generate model User
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:195:in
const_missing': uninitialized constant Userstamp (NameError) from ./script/../config/../vendor/plugins/userstamp/init.rb:7:inload_plugin’
from
c:/ruby/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/initializer.rb:311:in
load_plugin' from c:/ruby/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/initializer.rb:311:insilence_warnings’
from
c:/ruby/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/initializer.rb:311:in
load_plugin' from c:/ruby/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/initializer.rb:145:inload_plugins’
from
c:/ruby/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/initializer.rb:145:in
each' from c:/ruby/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/initializer.rb:145:inload_plugins’
from
c:/ruby/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/initializer.rb:100:in
process' ... 9 levels... from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:214:inrequire’
from ./script/generate:3
from -e:3:in `load’
from -e:3

Hi Josh ~

You can follow up with DeLynn who wrote the plug-in. I know he would
love some feedback if there is a bug. It might be that you have to
have the table set up before you add in the plugin, but that is just a
guess. I have it working in my app.

~ Ben

On 1/22/06, Joshua S. [email protected] wrote:

and a couple of engines installed.
load_plugin' c:/ruby/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/initializer.rb:145:in require’


Ben R.
http://www.benr75.com

I’ve looked at the init.rb file and it seems to all be in
order. I can’t do anything, start WebBRick, generate a model, nothing.
I’ve posted the error at the bottom.

There was actually a problem with the way the init file was sending
the Userstamp module into ActiveRecord. Line 7 of the init.rb should
read:

ActiveRecord::Base.send(:include, ActiveRecord::Userstamp)

I have updated this file in the subversion repository, so feel free to
either edit the init.rb file yourself, or uninstall and re-install the
plugin.

Sorry for the inconvenience.


DeLynn B.
[email protected]