Solved

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

Posted on 2011-09-02
6
607 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 

Author Comment

by:Jay1607
Comment Utility
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
Comment Utility
Thanks!!
0
 
LVL 12

Expert Comment

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

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

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…
Recently I spent hours debugging an issue in a Rails project where ActiveRecord was causing MySQL errors trying to create a User object of a class at the top level of a Single Table Inheritance model structure.  It turns out `.create` behaves differ…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now