I am experiencing the same error whenever I run "script/generate
scaffold" and can't figure out how to fix it. Because I am totally new
to rails, I don't know which gems are relevant, so I'm just going to
list all that I have installed:
$ gem list
*** LOCAL GEMS ***
abstract (1.0.0)
actionmailer (2.1.0, 2.0.2, 1.3.6, 1.3.3)
actionpack (2.1.0, 2.0.2, 1.13.6, 1.13.3)
actionwebservice (1.2.6, 1.2.3)
activerecord (2.1.0, 2.0.2, 1.15.6, 1.15.3)
activeresource (2.1.0, 2.0.2)
activesupport (2.1.0, 2.0.2, 1.4.4, 1.4.2)
acts_as_ferret (0.4.1)
capistrano (2.0.0)
cgi_multipart_eof_fix (2.5.0, 2.2)
daemons (1.0.10, 1.0.9, 1.0.7)
dnssd (0.6.0)
erubis (2.6.2)
fastthread (1.0.1, 1.0)
fcgi (0.8.7)
ferret (0.11.4)
gem_plugin (0.2.3, 0.2.2)
highline (1.2.9)
hoe (1.5.3)
hpricot (0.6)
json_pure (1.1.2)
libxml-ruby (0.3.8.4)
merb-core (0.9.3)
mime-types (1.15)
mongrel (1.1.5, 1.1.4, 1.0.1)
needle (1.3.0)
net-sftp (1.1.0)
net-ssh (1.1.2)
newgem (0.23.1)
rack (0.3.0)
rails (2.0.2)
rake (0.8.1, 0.7.3)
RedCloth (3.0.4)
rspec (1.1.4)
rubigen (1.3.2)
ruby-openid (1.1.4)
ruby-yadis (0.3.4)
rubyforge (1.0.0)
rubygems-update (1.1.1)
rubynode (0.1.3)
sources (0.0.1)
sproutcore (0.9.9)
sqlite3-ruby (1.2.2, 1.2.1)
syntax (1.0.0)
termios (0.9.4)
I have already tried uninstalling and reinstalling rubigen. I also had
the same issue when using rails 2.1. Again, for the sake of being
thorough, here's an example of what happens:
$ script/generate scaffold event name:string budget:decimal
exists app/models/
exists app/controllers/
exists app/helpers/
create app/views/events
exists app/views/layouts/
exists test/functional/
exists test/unit/
create app/views/events/index.html.erb
create app/views/events/show.html.erb
create app/views/events/new.html.erb
create app/views/events/edit.html.erb
create app/views/layouts/events.html.erb
create public/stylesheets/scaffold.css
dependency model
uninitialized constant RubiGen
Any help would be greatly appreciated.
Thanks,
Kevin
On Apr 25, 6:40 pm, "Nic Williams" <
drnicwilli...@gmail.com> wrote:
> Yeah the 1.3.1 fixes the issues with creating + testing rails generators.
> Tis good fun :)
>
>
>
> On Sat, Apr 26, 2008 at 8:39 AM, Andrew Stone <
stoneli...@gmail.com> wrote:
>
> > On Fri, Apr 25, 2008 at 5:10 PM, Nic Williams <
drnicwilli...@gmail.com>
> > wrote:
>
> > > Ooh, sorry didn't see your 2nd email.
> > > Can you try the following:
>
> > > gem uninstall rubigen
> > > - select "all"
> > > gem install rubigen
>
> > It looks like the new version corrected the issue. The original issue was
> > that the code generated by the component generator (for Rails) utilized the
> > RubiGen::Base class instead of Rails::Generator::Base. I didn't know any
> > better at the time...the Rails code requires it's generators to be
> > descendants of Rails::Generator::Base.
>
> > Anyway...issue resolved. Thanks for Newgem and Rubigen, it has been a
> > really big help.
>
> > --
> > Andrew Stone
>
> --
> Dr Nic Williamshttp://drnicacademy.com- Ruby/Rails training/dev around the worldhttp://drnicwilliams.com- Ruby/Rails/Javascript/Web2.0