title: undefined method `humanize' for nil:NilClass
body: <p>I know i should put the if statement but how do i have to put. I am new to rails. Can someone figure it out for me ? </p>
  
  <pre><code> &lt;div class="row"&gt;
        &lt;div class="col-md-12 col-sm-12"&gt;
          &lt;div class="col-md-6 col-sm-6"&gt;
            &lt;h4&gt;&lt;i&gt;&lt;%=@prospects.length.to_s + " " %&gt;&lt;/i&gt;
              &lt;%= params[:state].humanize.pluralize + " on"%&gt;&lt;i&gt;&lt;%= @title %&gt;&lt;/i&gt;&lt;/h4&gt;
          &lt;/div&gt;
          &lt;%= render "admin/report/appointments/filter_form.html.erb" %&gt;
        &lt;/div&gt;
  </code></pre>