title: 500 Internal Server Error - ActionView::Template::Error in Rails Production
body: <p>I am getting 500 Internal server error on my production rails site and this is what I am seeing it on logs/production.log. Surprisingly the code works on local server in development </p>
  
  <pre><code>Completed 500 Internal Server Error in 11745ms
  
  ActionView::Template::Error (undefined method `[]' for nil:NilClass
    (in /home/jason/public_html/site/app/assets/stylesheets/application.css)):
      8:     
      9:     &lt;%= csrf_meta_tags %&gt;
      10: 
      11:     &lt;%= stylesheet_link_tag "application", :media =&gt; "all" %&gt;
      12:  
      13:   &lt;/head&gt;
      14:   &lt;body&gt;
    app/views/layouts/application.html.erb:11:in `_app_views_layouts_application_html_erb__243082314235891573_4889460'
    app/controllers/main_controller.rb:18:in `index'
  </code></pre>
  
  <p>I am little lost here, any help ? </p>
  
  <p>Here is the Application.css</p>
  
  <pre><code> /* You're free to add application-wide styles to this file and they'll appear at the top of the
   * compiled file, but it's generally better to create a new file per style scope.
   *
   *= require_tree .
   *= require_self
   */
  
  /* Main Body */
  
  body {
      background: #f3f3f3;
  }
  </code></pre>