Solved

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

Posted on 2011-09-02
6
636 Views
Last Modified: 2012-05-12
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
Comment
Question by:Jay1607
  • 4
  • 2
6 Comments
 
LVL 12

Accepted Solution

by:
JESii earned 500 total points
ID: 36472750
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
 

Author Comment

by:Jay1607
ID: 36472811
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
 

Author Comment

by:Jay1607
ID: 36472823
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
Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

 

Author Comment

by:Jay1607
ID: 36472906
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
 

Author Closing Comment

by:Jay1607
ID: 36473370
Thanks!!
0
 
LVL 12

Expert Comment

by:JESii
ID: 36474885
You're welcome; glad that helped... and thanks for the points!
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Cannot get progress bars to work w/ Apache Progress Module 3 420
Ruby OO Design - General Knowledge 3 314
Ruby cannot load file problem 7 573
RVM change location 4 270
Article by: narshlob
If you've ever programmed in Ruby and have come across either a proc or a lambda, you might have been wondering what the difference is between the two and when you would use one over the other. This article will try to explain the difference between…
In Ruby, Call or invoke a API DLL library is easily via Win32API class, win32-api gem or other gems. For general DLL API call, there are quite a few references, some good tips list below: http://www.rubytips.org/2008/05/13/accessing-windows-api-fro…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question