Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

MacFan26

macrumors 65816
Original poster
Jan 8, 2003
1,219
1
San Francisco, California
I've done a little work in ruby and I was looking into rails and found this starter guide from Apple: http://developer.apple.com/tools/developonrailsleopard.html

Everything worked for me so far, but In the section "Jump-Starting the Application" it has you create event scaffolding by doing

script/generate scaffold event name:string budget:decimal

But it complains that I don't have the RubyGems, but I ran all the updates, and it tells me my current version is 1.1.1? Anyone possibly know how to fix this? Thanks :)

thrasher:expenses thrasher$ script/generate scaffold event name:string budget:decimal
Rails requires RubyGems >= 0.9.4. Please install RubyGems and try again: http://rubygems.rubyforge.org
thrasher:expenses thrasher$ gem --version
1.1.1
thrasher:expenses thrasher$
 
Looking through the commands that the guide specifies, I think there's a possibility that not everything will have been updated to the latest version. Which version of Rails are you running? In the Terminal, run
Code:
rails --version

If you're at anything less than Rails 2.1.0, do
Code:
sudo gem update
and try again.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.