Rails has a helper to do this :D

```ruby
<%= content_tag_for :li, goal, class: (goal == @current_goal ? "current" : nil) do %>
```

(and then just add `<% end %>` instead of the `</li>` at the bottom of the file)