# First rails app failed

**URL:** <https://www.ruby-forum.com/t/first-rails-app-failed/182377>\
**Category:** Ruby\
**Created:** [January 27, 2010, 9:21am UTC](https://www.ruby-forum.com/t/first-rails-app-failed/182377 "2010-01-27T09:21:32Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![rubynut](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/8e8cbc/32.png) [@rubynut](https://www.ruby-forum.com/u/rubynut)\
**Post date:** [January 27, 2010, 9:21am UTC](https://www.ruby-forum.com/t/first-rails-app-failed/182377/1 "2010-01-27T09:21:32Z")

</div>

I just started my lesson on rails and followed the steps in the book  
“beginning ruby on rails”, but sorry I have been getting wrong.  
I took the steps to build a new rails application as below:

1. rails hello

2. cd hello; ruby script/generate controller App

3. vi app/controllers/app\_controller.rb and put these content in it:  
class AppController \< ApplicationController  
def greeting  
end  
end

4. vi app/views/app/greeting.rhtml and put these content in it:

 Ruby on Rails 
# Yes itâ€™s working!

1. ruby script/server -d

Now open a browser and visit to:  
[http://localhost:3000/app/greeting](http://localhost:3000/app/greeting)

Hmm I got:

We’re sorry, but something went wrong.  
We’ve been notified about this issue and we’ll take a look at it  
shortly.

Can you kindly help me? Thanks.

---

<div class="post-metadata">

**Author:** ![rubynut](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/8e8cbc/32.png) [@rubynut](https://www.ruby-forum.com/u/rubynut)\
**Post date:** [January 27, 2010, 9:56am UTC](https://www.ruby-forum.com/t/first-rails-app-failed/182377/2 "2010-01-27T09:56:39Z")

</div>

Please check your logs most probably its trying to look for some db  
connections defined in database.yml and its not able to connect.

---

<div class="post-metadata">

**Author:** ![rubynut](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/8e8cbc/32.png) [@rubynut](https://www.ruby-forum.com/u/rubynut)\
**Post date:** [January 27, 2010, 10:31am UTC](https://www.ruby-forum.com/t/first-rails-app-failed/182377/3 "2010-01-27T10:31:43Z")

</div>

Ruby N. wrote:

> 1. ruby script/server -d

Just drop the -d, and you’ll see the full error appear on your console.  
But Ruby is not Rails. Rails questions belong on a Rails mailing list.

Regards,

Brian.

---

<div class="post-metadata">

**Author:** ![rubynut](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/8e8cbc/32.png) [@rubynut](https://www.ruby-forum.com/u/rubynut)\
**Post date:** [January 27, 2010, 1:23pm UTC](https://www.ruby-forum.com/t/first-rails-app-failed/182377/4 "2010-01-27T13:23:19Z")

</div>

On Wed, Jan 27, 2010 at 5:31 PM, Brian C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> Ruby N. wrote:
> 
> > 1. ruby script/server -d
> 
> Just drop the -d, and you’ll see the full error appear on your console.  
> But Ruby is not Rails. Rails questions belong on a Rails mailing list.

Thanks Brain, I have resolved it.  
I need to install sqlite3 for ruby before starting rails.

Thanks.

---

<div class="post-metadata">

**Author:** ![rubynut](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/8e8cbc/32.png) [@rubynut](https://www.ruby-forum.com/u/rubynut)\
**Post date:** [January 31, 2010, 9:40pm UTC](https://www.ruby-forum.com/t/first-rails-app-failed/182377/5 "2010-01-31T21:40:33Z")

</div>

yes and I found out that ruby and ruby on rails are ziped files. this is  
why I could not use them.so I took them off of my computer. I feel that  
noone was willing to help me with this problem. So I will try another  
program to use, other than ruby. no that I have put the books up, ruby  
and ruby on rals had failed.

— On Wed, 1/27/10, Ruby N. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

From: Ruby N. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Subject: Re: first rails app failed  
To: “ruby-talk ML” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Date: Wednesday, January 27, 2010, 5:22 AM

On Wed, Jan 27, 2010 at 5:31 PM, Brian C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> Ruby N. wrote:
> 
> > 1. ruby script/server -d
> 
> Just drop the -d, and you’ll see the full error appear on your console.  
> But Ruby is not Rails. Rails questions belong on a Rails mailing list.

Thanks Brain, I have resolved it.  
I need to install sqlite3 for ruby before starting rails.

Thanks.

---

<div class="post-metadata">

**Author:** ![rubynut](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/8e8cbc/32.png) [@rubynut](https://www.ruby-forum.com/u/rubynut)\
**Post date:** [January 31, 2010, 10:58pm UTC](https://www.ruby-forum.com/t/first-rails-app-failed/182377/6 "2010-01-31T22:58:23Z")

</div>

On Sun, Jan 31, 2010 at 2:39 PM, James N. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> yes and I found out that ruby and ruby on rails are ziped files. this is why I could not use them.so I took them off of my computer. I feel that noone was willing to help me with this problem. So I will try another program to use, other than ruby. no that I have put the books up, ruby and ruby on rals had failed.

This doesn’t make any sense.

Every major operating system is capable of unzipping files. This  
includes even most major smartphones, sans iphone (unless jailbroken).

If you are simply trying to learn ruby a good place to start would be  
with why’s poignant guide to ruby and [tryruby.org](http://tryruby.org).

As for building applications, if you can’t even unzip a file, python,  
php, even c# won’t be any eaiser.

Best of luck.

Andrew McElroy
