# Cant run my Rails app!

**URL:** <https://www.ruby-forum.com/t/cant-run-my-rails-app/57187>\
**Category:** Ruby\
**Created:** [April 7, 2006, 7:21pm UTC](https://www.ruby-forum.com/t/cant-run-my-rails-app/57187 "2006-04-07T19:21:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jadzien](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/fbc32d/32.png) [@jadzien](https://www.ruby-forum.com/u/jadzien)\
**Post date:** [April 7, 2006, 7:21pm UTC](https://www.ruby-forum.com/t/cant-run-my-rails-app/57187/1 "2006-04-07T19:21:53Z")

</div>

Boy, this is a very weird feeling. Excitement mixed with frustration! Am  
really excited to learn Ruby and was following the examples of Ruby For  
Rails e-book (manning) and finally, after getting all the coding and  
settings bits done, I cant get it to work!

The example (chapter 2), after creating the Rails app, coding the show  
and welcome methods, setting the route, database, layouts, …etc, the  
instruction was to start webrick using ./script/server [-b domain] [-p  
port] and then point the browser to [http://localhost:3000](http://localhost:3000)

Did that and i only get the “Welcome Aboard Ruby on Rails” web page.  
Tried to use 127.0.0.1 and get prompted by windows for user id and  
password which does not seem to like my login credentials and tells me  
that i’m unauthorized to view the page!

Installed the complete bundle of rails which came with mysql, php,  
apache…hope someone out there can help me get through this stage!

Cheers  
jadzien

---

<div class="post-metadata">

**Author:** ![jadzien](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/fbc32d/32.png) [@jadzien](https://www.ruby-forum.com/u/jadzien)\
**Post date:** [April 7, 2006, 7:27pm UTC](https://www.ruby-forum.com/t/cant-run-my-rails-app/57187/2 "2006-04-07T19:27:55Z")

</div>

On 4/7/06, jadzien caruthas [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> The example (chapter 2), after creating the Rails app, coding the show and welcome  
> methods, setting the route, database, layouts, …etc, the instruction was to start webrick  
> using ./script/server [-b domain] [-p port] and then point the browser to  
> [http://localhost:3000](http://localhost:3000)
> 
> Did that and i only get the “Welcome Aboard Ruby on Rails” web page. Tried to use  
> 127.0.0.1 and get prompted by windows for user id and password which does not seem  
> to like my login credentials and tells me that i’m unauthorized to view the page!

Jadzien,

Generally, these questions are better directed at the Rails mailing  
list[1]. In this case, what it’s looking like is that you’re still  
pulling up the public/index.html file for your application. There are  
several ways to get around this (changing the .htaccess file, removing  
the public/index.html file, etc.) but for now the simplest solution  
would be to just access the correct controller directly rather than  
relying on the default route. For example, if you have a  
WelcomeController, try this url:

[http://localhost:3000/welcome](http://localhost:3000/welcome)

Jacob F.

[1] [http://lists.rubyonrails.org/mailman/listinfo/rails](http://lists.rubyonrails.org/mailman/listinfo/rails)

---

<div class="post-metadata">

**Author:** ![jadzien](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/fbc32d/32.png) [@jadzien](https://www.ruby-forum.com/u/jadzien)\
**Post date:** [April 8, 2006, 1:41pm UTC](https://www.ruby-forum.com/t/cant-run-my-rails-app/57187/3 "2006-04-08T13:41:54Z")

</div>

Thanks Jacob, especially for pointing me to the rails mailing  
list…very helpful for a newbie like me! Turns out my problems was that  
i did not run MySQL service before i tried to run my app. Well…looks  
like i’m on my way!

Jacob F. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:  
On 4/7/06, jadzien caruthas wrote:

> The example (chapter 2), after creating the Rails app, coding the show and welcome  
> methods, setting the route, database, layouts, …etc, the instruction was to start webrick  
> using ./script/server [-b domain] [-p port] and then point the browser to  
> [http://localhost:3000](http://localhost:3000)
> 
> Did that and i only get the “Welcome Aboard Ruby on Rails” web page. Tried to use  
> 127.0.0.1 and get prompted by windows for user id and password which does not seem  
> to like my login credentials and tells me that i’m unauthorized to view the page!

Jadzien,

Generally, these questions are better directed at the Rails mailing  
list[1]. In this case, what it’s looking like is that you’re still  
pulling up the public/index.html file for your application. There are  
several ways to get around this (changing the .htaccess file, removing  
the public/index.html file, etc.) but for now the simplest solution  
would be to just access the correct controller directly rather than  
relying on the default route. For example, if you have a  
WelcomeController, try this url:

[http://localhost:3000/welcome](http://localhost:3000/welcome)

Jacob F.

[1] [http://lists.rubyonrails.org/mailman/listinfo/rails](http://lists.rubyonrails.org/mailman/listinfo/rails)

---

<div class="post-metadata">

**Author:** ![jadzien](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/fbc32d/32.png) [@jadzien](https://www.ruby-forum.com/u/jadzien)\
**Post date:** [April 7, 2006, 7:30pm UTC](https://www.ruby-forum.com/t/cant-run-my-rails-app/57187/4 "2006-04-07T19:30:56Z")

</div>

Read more careful. For [http://localhost:3000](http://localhost:3000) url webrick will render  
public/index.html page. You need to specify a controller an action name  
in  
your url.

Kent.
