# Ruby On Rails with Webrick on a Vista System

**URL:** <https://www.ruby-forum.com/t/ruby-on-rails-with-webrick-on-a-vista-system/165215>\
**Category:** Rails\
**Created:** [April 10, 2009, 9:28am UTC](https://www.ruby-forum.com/t/ruby-on-rails-with-webrick-on-a-vista-system/165215 "2009-04-10T09:28:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![SnLStark](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/41988e/32.png) [@SnLStark](https://www.ruby-forum.com/u/SnLStark)\
**Post date:** [April 10, 2009, 9:28am UTC](https://www.ruby-forum.com/t/ruby-on-rails-with-webrick-on-a-vista-system/165215/1 "2009-04-10T09:28:23Z")

</div>

Does this work. I am trying to learn ROR on my home system (Vista)  
using the Agile Web D. with Rails and can not get past the  
first program.

I need some help I am currently learning Ruby on Rails and found a  
great book – Agile Web D. With Rails. It has many good  
examples and does an excellence job of presenting the information.  
The problem that I am having is when I attempt to create and run the  
programs on my Vista system using WEBrick. After starting WEBrick I  
can enter ‘[//localhost:3000](https://localhost:3000)’ and the Welcome Aboard screen. But from  
there it goes down hill.

Continuing with the example I add the controllers and views for ‘Say’  
with a hello method as it instructs and attempt to load them. But I  
keep getting the following message: “We’re sorry, but something went  
wrong. We’ve been notified about this issue and we’ll take a look at  
it shortly”. Who are ‘we’ and how are they doing to help me with this  
problem.

Can any of you help me? The book gives not suggestions nor where to  
go for help. I would appreciate any guidance that any one can give me.

---

<div class="post-metadata">

**Author:** ![SnLStark](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/41988e/32.png) [@SnLStark](https://www.ruby-forum.com/u/SnLStark)\
**Post date:** [April 10, 2009, 7:54pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-with-webrick-on-a-vista-system/165215/2 "2009-04-10T19:54:45Z")

</div>

What database are you using, the default sqlite3? Try looking in log/ in  
the  
development log file. What error message are you getting recorded there?  
Cheers–

Charles

---

<div class="post-metadata">

**Author:** ![SnLStark](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/41988e/32.png) [@SnLStark](https://www.ruby-forum.com/u/SnLStark)\
**Post date:** [April 14, 2009, 2:53pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-with-webrick-on-a-vista-system/165215/3 "2009-04-14T14:53:20Z")

</div>

Hi, It’s very simple.

In Rails 2.2.2, if there is any problem with configuration, it was  
clearly notify in the browser. For an example,  
if you didn’t have a proper database, or password for access database  
and so on. But from Rails 2.3 this feature  
is missing. It’s just showing the message “We’re sorry, but something  
went  
wrong. We’ve been notified about this issue and we’ll take a look at  
it shortly”. I don’t know why. Rails team should consider this.

First you need to check the database.yml file under the config folder.  
By reading the first commented line you can  
identify what is the database that you are using. Most probably it  
should be SQLite3, if you didn’t specify otherwise.  
If so, you won’t require the username and the password for the  
database. You need to install some SQLite3 libraries using  
gem package manager.

If you are using “Instant Rails” - single click installer then the  
libraries already with in the package.

If your database.yml file configuration shows that you have set up a  
MySQL database, then you need to specify the proper  
username and password. Then before you run the application you need to  
create the database. You can use the rake utility for that.

rake db:create

Then run the application. If you still have problems. Let me know.  
I’ll help. According to my point of view Windows in not a suitable  
and enjoyable development environment for Rails. Try R. with  
Ubunutu or any other Linux distribution. If you need a guild to  
install  
Ruby on Rails on Ubuntu you can read my latest blog post here.

[http://mohamedaslam.com/](http://mohamedaslam.com/)

Finally, please check the version of the book that you are learning.  
Of course, it’s a perfect book. But 1st and 2nd versions are now  
outdated.  
You can’t use many functions described in those edition. Most of them  
are now deprecated. Latest 3rd edition is now released.

Regards,  
Mohamed A.

---

<div class="post-metadata">

**Author:** ![SnLStark](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/41988e/32.png) [@SnLStark](https://www.ruby-forum.com/u/SnLStark)\
**Post date:** [November 19, 2009, 10:09pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-with-webrick-on-a-vista-system/165215/4 "2009-11-19T22:09:37Z")

</div>

Following Mohamed’s recommendations as a guideline, I went and did a  
“sudo gem install sqlite3-ruby” and this seemed to stop any errors. (I’m  
also using the Agile Rails book, wish the authors had thought to include  
that tidbit.)

Thanks Mohamed for the headsup for us. Oh, I’m on Ubuntu 9.10 and  
followed the Hackido blog instructions for setting up RoR on Ubuntu  
9.10.

Mohamed A. wrote:

> Hi, It’s very simple.
> 
> In Rails 2.2.2, if there is any problem with configuration, it was  
> clearly notify in the browser. For an example,  
> if you didn’t have a proper database, or password for access database  
> and so on. But from Rails 2.3 this feature  
> is missing. It’s just showing the message ï¿½We’re sorry, but something  
> went  
> wrong. We’ve been notified about this issue and we’ll take a look at  
> it shortlyï¿½. I don’t know why. Rails team should consider this.
> 
> First you need to check the database.yml file under the config folder.  
> By reading the first commented line you can  
> identify what is the database that you are using. Most probably it  
> should be SQLite3, if you didn’t specify otherwise.  
> If so, you won’t require the username and the password for the  
> database. You need to install some SQLite3 libraries using  
> gem package manager.
> 
> If you are using “Instant Rails” - single click installer then the  
> libraries already with in the package.
> 
> If your database.yml file configuration shows that you have set up a  
> MySQL database, then you need to specify the proper  
> username and password. Then before you run the application you need to  
> create the database. You can use the rake utility for that.
> 
> rake db:create
> 
> Then run the application. If you still have problems. Let me know.  
> I’ll help. According to my point of view Windows in not a suitable  
> and enjoyable development environment for Rails. Try R. with  
> Ubunutu or any other Linux distribution. If you need a guild to  
> install  
> Ruby on Rails on Ubuntu you can read my latest blog post here.
> 
> [http://mohamedaslam.com/](http://mohamedaslam.com/)
> 
> Finally, please check the version of the book that you are learning.  
> Of course, it’s a perfect book. But 1st and 2nd versions are now  
> outdated.  
> You can’t use many functions described in those edition. Most of them  
> are now deprecated. Latest 3rd edition is now released.
> 
> Regards,  
> Mohamed A.
