# Error : We're sorry, but something went wrong

**URL:** <https://www.ruby-forum.com/t/error-were-sorry-but-something-went-wrong/168165>\
**Category:** Deployment\
**Created:** [May 17, 2009, 12:41pm UTC](https://www.ruby-forum.com/t/error-were-sorry-but-something-went-wrong/168165 "2009-05-17T12:41:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sachinkale](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/58956e/32.png) [@sachinkale](https://www.ruby-forum.com/u/sachinkale)\
**Post date:** [May 17, 2009, 12:41pm UTC](https://www.ruby-forum.com/t/error-were-sorry-but-something-went-wrong/168165/1 "2009-05-17T12:41:31Z")

</div>

Hi,

I create my rails application called ‘demo’, then run ‘script/server’.  
Browse URL: [http://localhost:3000/](http://localhost:3000/). It displayes default page ‘Welcome  
aboard’ page.

Then run ‘ruby script/generate controller Say’ command  
Following massages will displayed on screen :

exists app/controllers/  
exists app/helpers/  
create app/views/say  
exists test/functional/  
create app/controllers/say\_controller.rb  
create test/functional/say\_controller\_test.rb  
create app/helpers/say\_helper.rb

After that I edit ‘say\_controller.rb’ in app/controllers as

class SayController \< ApplicationController  
def hello  
end  
end

Then create ‘hello.rhtml’ file in app/views folder

hello.rhtml

 Hello, Rails! 
# Hello from Rails!

When I browse URL: [http://localhost:3000/say/hello](http://localhost:3000/say/hello)  
It Gives an following massage.

We’re sorry, but something went wrong.

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

What to do??? Is i missing any configuration?  
Please help me out.

Thanks and Regards,  
Sachin Khot

---

<div class="post-metadata">

**Author:** ![sachinkale](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/58956e/32.png) [@sachinkale](https://www.ruby-forum.com/u/sachinkale)\
**Post date:** [June 2, 2009, 3:11pm UTC](https://www.ruby-forum.com/t/error-were-sorry-but-something-went-wrong/168165/2 "2009-06-02T15:11:30Z")

</div>

Hello,

Please check your project\_name/log/developmet.log to find something went  
wrong.

Did you install database engine for rails?

Try to install database engine & try again.

[http://www.mysql.org](http://www.mysql.org)  
[http://www.sqlite.org/](http://www.sqlite.org/)

Regards,  
Hank Wang

---

<div class="post-metadata">

**Author:** ![sachinkale](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/58956e/32.png) [@sachinkale](https://www.ruby-forum.com/u/sachinkale)\
**Post date:** [July 17, 2009, 3:31pm UTC](https://www.ruby-forum.com/t/error-were-sorry-but-something-went-wrong/168165/3 "2009-07-17T15:31:36Z")

</div>

Han-hong Wang wrote:

> Hello,
> 
> Please check your project\_name/log/developmet.log to find something went  
> wrong.
> 
> Did you install database engine for rails?
> 
> Try to install database engine & try again.
> 
> [http://www.mysql.org](http://www.mysql.org)  
> [http://www.sqlite.org/](http://www.sqlite.org/)
> 
> Regards,  
> Hank Wang

i have the same error and i already installed mysql database  
but there is that error “Unused local variable load\_error” in  
config/boot.rb  
in the line  
rescue Gem::LoadError =\> load\_error  
$stderr.puts %(Missing the Rails #{version} gem. Please `gem install -v=#{version} rails`, update your RAILS\_GEM\_VERSION setting in  
config/environment.rb for the Rails version you do have installed, or  
comment out RAILS\_GEM\_VERSION to use the latest version installed.)  
exit 1  
end

---

<div class="post-metadata">

**Author:** ![sachinkale](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/58956e/32.png) [@sachinkale](https://www.ruby-forum.com/u/sachinkale)\
**Post date:** [July 21, 2009, 5:02pm UTC](https://www.ruby-forum.com/t/error-were-sorry-but-something-went-wrong/168165/4 "2009-07-21T17:02:01Z")

</div>

try renaming hello.rhtml to hello.html.erb

Milan D.  
[www.milandobrota.com](http://www.milandobrota.com)

---

<div class="post-metadata">

**Author:** ![sachinkale](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/58956e/32.png) [@sachinkale](https://www.ruby-forum.com/u/sachinkale)\
**Post date:** [November 6, 2013, 12:50pm UTC](https://www.ruby-forum.com/t/error-were-sorry-but-something-went-wrong/168165/5 "2013-11-06T12:50:22Z")

</div>

Sorry for bumping this topic, but there are a number of links on the  
Internet (e.g. StackOverflow) which point to this topic, so I’d like to  
add something in order to make it more useful for people who found this  
topic through searches.

Whenever you get an unexpected error, the first thing you should do is  
to read the log files. There are two log files that are important to  
you:

- The web server error log, typically /var/log/apache/error.log or  
/var/log/nginx/error.log. This  
log file contains:

- The Rails development log (or production log, in case you’re running  
in production), `log/development.log` (or `log/production.log`). When an  
error occurs during request handling, it is typically logged here. This  
file does **not** contain errors that Rails encounters during startup.

The error messages will often tell you what the problem is and how to  
solve it.

More information can be found in the Troubleshooting section of the  
Passenger manual:

- Nginx version:  
[Phusion Passenger users guide, Nginx version](http://www.modrails.com/documentation/Users%20guide%20Nginx.html#_generic_troubleshooting_tips)
- Apache version:  
[Phusion Passenger users guide, Apache version](http://www.modrails.com/documentation/Users%20guide%20Apache.html#_generic_troubleshooting_tips)
- Standalone version:  
[Phusion Passenger Standalone users guide](http://www.modrails.com/documentation/Users%20guide%20Standalone.html#_generic_troubleshooting_tips)
