# Odd Ruby difficulties

**URL:** <https://www.ruby-forum.com/t/odd-ruby-difficulties/172150>\
**Category:** Rails\
**Created:** [July 15, 2009, 5:59pm UTC](https://www.ruby-forum.com/t/odd-ruby-difficulties/172150 "2009-07-15T17:59:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Byron](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/48db29/32.png) [@Byron](https://www.ruby-forum.com/u/Byron)\
**Post date:** [July 15, 2009, 5:59pm UTC](https://www.ruby-forum.com/t/odd-ruby-difficulties/172150/1 "2009-07-15T17:59:06Z")

</div>

Hello, every time I create a Ruby controller and a view I get an error  
message when trying to open it in a web browser:

We’re sorry, but something went wrong.

We’ve been notified about this issue and we’ll take a look at it  
shortly.

This is as descriptive as it gets I’m afraid. [http://localhost:3000/](http://localhost:3000/)  
displays correctly, but nothing else. Any idea what I could be doing  
wrong here? I’ve looked up a ton of Ruby resources but none of them  
act as if I should be having this problem.

Thanks.

---

<div class="post-metadata">

**Author:** ![Byron](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/48db29/32.png) [@Byron](https://www.ruby-forum.com/u/Byron)\
**Post date:** [July 15, 2009, 6:02pm UTC](https://www.ruby-forum.com/t/odd-ruby-difficulties/172150/2 "2009-07-15T18:02:29Z")

</div>

Byron wrote:

> Hello, every time I create a Ruby controller and a view I get an error  
> message when trying to open it in a web browser:
> 
> We’re sorry, but something went wrong.
> 
> We’ve been notified about this issue and we’ll take a look at it  
> shortly.
> 
> This is as descriptive as it gets I’m afraid. [http://localhost:3000/](http://localhost:3000/)  
> displays correctly, but nothing else. Any idea what I could be doing  
> wrong here? I’ve looked up a ton of Ruby resources but none of them  
> act as if I should be having this problem.
> 
> Thanks.

Looks like you are running in the Production environment.

Please run the app in the development environment and look at the logs.  
The logs can be found in the logs/ directory.

Thankyou

Chaitanya

---

<div class="post-metadata">

**Author:** ![Byron](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/48db29/32.png) [@Byron](https://www.ruby-forum.com/u/Byron)\
**Post date:** [July 15, 2009, 11:39pm UTC](https://www.ruby-forum.com/t/odd-ruby-difficulties/172150/3 "2009-07-15T23:39:12Z")

</div>

2009/7/15 Byron [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> Hello, every time I create a Ruby controller and a view I get an error  
> message when trying to open it in a web browser:
> 
> We’re sorry, but something went wrong.
> 
> We’ve been notified about this issue and we’ll take a look at it  
> shortly.

That text comes from the default 500.html file in your application  
public directory. I think very many beginners have been confused by  
this (including me). It would be much more sensible IMHO if the  
default 500.html file said that it was, in fact, the default 500.html  
file.

Have a look at the log file in the applications log folder for clues  
as to why the 500 error is being encountered.

Colin
