PDA

View Full Version : Apple's guide for developing rails in leopard (question)




MacFan26
Jun 15, 2008, 02:14 AM
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$



bhess
Jun 16, 2008, 10:43 PM
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 rails --version

If you're at anything less than Rails 2.1.0, do sudo gem update and try again.

MacFan26
Jun 17, 2008, 01:59 AM
Thanks, turns out I had ruby installed in /opt/local/bin/ruby and gem and rails are in /usr/local/bin. Oops.