Forum: Ruby on Rails UserStamp plugin

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Joshua S. (Guest)
on 2006-01-22 18:20
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:in
`load_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:in
`silence_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:in
`load_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:in
`load_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:in
`require'
	from ./script/generate:3
	from -e:3:in `load'
	from -e:3
Ben R. (Guest)
on 2006-01-22 19:53
(Received via mailing list)
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.

http://www.delynnberry.com

~ Ben

On 1/22/06, Joshua S. <removed_email_address@domain.invalid> 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
DeLynn B. (Guest)
on 2006-01-22 20:14
(Received via mailing list)
> 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.
removed_email_address@domain.invalid
http://www.delynnberry.com
This topic is locked and can not be replied to.