title: Completed 500 Internal Server Error in Rails Development
body: <p>I have been facing this Completed 500 Internal Server Error when developing my Rails application. I am following online tutorials for the development and it works fine previously. However, starting today, it gives me this error if I am trying to render pages other than the normal "Yay, you are on Rails!" page. </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>  Rendering messages/index.html.erb within layouts/application
    Rendered messages/index.html.erb within layouts/application (Duration: 0.6ms | Allocations: 199)
  Completed 500 Internal Server Error in 19ms (ActiveRecord: 0.0ms | Allocations: 6751)</code></pre>
  </div>
  </div>
  </p>
  
  <p>I have properly defined my Routing in config/routes.rb (routing to messages#index), I have defined a proper controller in app/controllers/message_controller.rb and I have defined a proper view for the messages#index, but it still give me this error all the time.</p>
  
  <p>The log only contains the above snippet and whenI inspect from the Web, there doesnt seem to have any useful information for me to debug.</p>
  
  <p>Any help is appreciated, thank you!</p>