[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

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

Posted on 2011-09-02
6
Medium Priority
?
664 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
6 Comments
 
LVL 12

Accepted Solution

by:
JESii earned 2000 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
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!

 

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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

I recently rediscovered rails when I needed a holiday project and decided to build a management dashboard for the company where I work.  With it being a project done in my free time, I could focus my time on learning the basics rather than trying to…
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…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Suggested Courses

656 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