• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 673
  • Last Modified:

Absolute Newby stuck at the gate - can't start Server

I've decided to try my hand at Ruby on Rails.

Running Mac OSX, with Ruby 1.8.7

I am working through this tutorial: http://guides.rubyonrails.org/getting_started.html

Firstly, something a bit odd when creating the app.. the instructions said to enter: "$ rails new blog" in the terminal to create a new rails app.  When I did this, the app was created, but in a folder called "new".. so I deleted that and ran "$ ruby blog".. that created my app with all it's folders.. all good.

Now I need to run the WEBrick server.  Tut says, while in the apps folder, enter "$ ruby server", and this should start a web server, but it creates a new app in a new folder "server".

So.. to recap.

a. "$ rails new blog", creates a new app in a folder called "new".

b. "$rails blog", creates a new app in a folder called "blog".

c. $ rails server" creates a new app in a folder called "server" (but this is supposed to start the server).

Can anyone see what I am doing wrong?

Many Thanks in advance!

Jason
0
Jay1607
Asked:
Jay1607
  • 4
  • 2
1 Solution
 
JESiiCommented:
Looks like you've got Rails 2 installed and using a Rails 3 tutorial.  Check this out by typing:
   Rails -v
to see what version is installed.  You can also type:
   gem list
and see what version of the Rails gems are installed (a 'gem' is ruby's name for modules that you can install.

0
 
Jay1607Author Commented:
aha.. you got it in one.. I knew this would be one of those embarrassing newby questions that i should have picked up as obvious.

running rails v 2.3.5

all the gems are the same.. actionmailer, actionpack etc.. are 2.3.5

How do I upgrade to rails v3 and all the gems to latest?

Thanks heaps JESii  !!
0
 
Jay1607Author Commented:
Just did a google search..

is it really this easy?

$ sudo gem update rails -y  ... to update rails

$ sudo gem update  ... to update all the gems


0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
Jay1607Author Commented:
OK.. not that easy.. I ran $ sudo gem update rails -y and got the following... version is still 2.3.5..





iMac:blog jason$ sudo gem update rails -y
Updating installed gems
Updating rails
Depending on your version of ruby, you may need to install ruby rdoc/ri data:

<= 1.8.6 : unsupported
 = 1.8.7 : gem install rdoc-data; rdoc-data --install
 = 1.9.1 : gem install rdoc-data; rdoc-data --install
>= 1.9.2 : nothing to do! Yay!
ERROR:  Error installing rails:
      multi_json requires RubyGems version >= 1.3.6
Gems updated: rake, rdoc
Installing ri documentation for rake-0.9.2...
Installing ri documentation for rdoc-3.9.4...
Installing RDoc documentation for rake-0.9.2...
Installing RDoc documentation for rdoc-3.9.4...
0
 
Jay1607Author Commented:
Thanks!!
0
 
JESiiCommented:
You're welcome; glad that helped... and thanks for the points!
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now