# New to Rails, but have a 500 error

**URL:** <https://www.ruby-forum.com/t/new-to-rails-but-have-a-500-error/167221>\
**Category:** Rails\
**Created:** [May 5, 2009, 5:43pm UTC](https://www.ruby-forum.com/t/new-to-rails-but-have-a-500-error/167221 "2009-05-05T17:43:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Learning](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/5daacb/32.png) [@Learning](https://www.ruby-forum.com/u/Learning)\
**Post date:** [May 5, 2009, 5:43pm UTC](https://www.ruby-forum.com/t/new-to-rails-but-have-a-500-error/167221/1 "2009-05-05T17:43:06Z")

</div>

i’m new to ruby on rails, there’s a problem when i follow the guide on

> **[Ruby on Rails](https://rubyonrails.org)**
>
> A web-app framework that includes everything needed to create database-backed web applications according to the Model-View-Controller (MVC) pattern.

i create a controller like this  
#Ruby script\generate home index  
and edit app/views/home/index.html.erb after that  
#Ruby script\server

when i browse the [http://localhost:3000/home/index](http://localhost:3000/home/index)

it shows that

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

how to deal with?

---

<div class="post-metadata">

**Author:** ![Learning](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/5daacb/32.png) [@Learning](https://www.ruby-forum.com/u/Learning)\
**Post date:** [May 5, 2009, 6:16pm UTC](https://www.ruby-forum.com/t/new-to-rails-but-have-a-500-error/167221/2 "2009-05-05T18:16:40Z")

</div>

I would normally say to look in the development.log file for a more  
detailed explanation.  
However, you will normally get a detailed error on the browser when  
running in development mode and the error you described when running  
in production.  
Try checking …\log\production.log to see what the error is.

Also, you can try starting up the server using ruby script/server -e  
development to make force it to development environment.

---

<div class="post-metadata">

**Author:** ![Learning](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/5daacb/32.png) [@Learning](https://www.ruby-forum.com/u/Learning)\
**Post date:** [May 5, 2009, 6:23pm UTC](https://www.ruby-forum.com/t/new-to-rails-but-have-a-500-error/167221/3 "2009-05-05T18:23:11Z")

</div>

Did you do:  
ruby script/generate controller …
