I have the following in my view:
<td><%= check_box_tag 'checked_in', registration.id , registration.checked_in, :class => "check-in" %></td>
This particular check box is used to check students in, and indicates whether a student showed up for a class or not. I would like the button disabled after the class date has past. So it would look something like:
<td><%= check_box_tag 'checked_in', registration.id , registration.checked_in, :class => "check-in",
if @orientation.class_date > Date.today then :disabled => "disabled" end %></td>
I get a syntax error "expecting keyword_end" with the above code.