?
Solved

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

Posted on 2011-09-02
6
Medium Priority
?
659 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

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

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

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…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses

771 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