script/generate… fail

I was reading some of the hype last night about Sproutcore and decided I’d install it and tinker around some. The docs said there was a gem, so I installed it that way. Fast forward to today, and I’m sitting here working on a rails app. I need a new controller, so I do the usual:

script/generate controller general

and I get:

uninitialized constant RubiGen

Gross - wtf could have caused that? I pop over to google, and after some digging, I found this post where Kevin D says:

All I had to do was uninstall sproutcore and the related executables (sc-build, sc-gen, sc-server, sproutcore).

Hmm…

sudo gem uninstall sproutcore

Boom - generator works again. I’m not sure why, nor do I care at this point. I’ll play with Sproutcore when it plays nice with the rest of my installed gems. In the meantime, with the attention that Sproutcore is getting after WWDC, I would imagine a lot of folks will encounter the same issue in the coming weeks, so I hope this helps somebody.

Update: Sproutcore pushed out a new patch on 6/18/08 that solves this and a few other issues.

    Categories: rails, ruby, rubygems     No Comments »