title: How to == Model Method Class in Helper for CSS?
body: <p><strong>calendar_helper</strong></p>
  
  <pre><code>def day_classes(day)
    classes = []
    classes.empty? ? nil : classes.join(" ")
    classes &lt;&lt; "future" if day &gt; Date.today # This make future days a white background, by default days are blue background
    # The Below Line Gives an Error (I want missed_dates date_missed to be red background): 
    classes &lt;&lt; "missed" if day == current_user.missed_dates.group_by {|i| i.date_missed.to_date}
  end
  </code></pre>
  
  <p><strong>NameError in Pages#home</strong></p>
  
  <pre><code>undefined local variable or method 'current_user'
  </code></pre>
  
  <p><strong>css</strong></p>
  
  <pre><code>.future { background-color: #FFF; }
  .missed { background-color: red; }
  </code></pre>
  
  <p>I built the calendar off of a <a href="https://www.youtube.com/watch?v=ndBKSjAbemo" rel="nofollow">railscasts tutorial</a>.</p>