Popsch/tracks — comment on commit a871511c24a87c1cddd2447d7e2714214eebbbe7
File:  line 0
By mattr-:

The code for the check doesn't belong in the view. It belongs in the controller. Then the controller can expose it to the view. [Railscasts #1] (http://railscasts.com/episodes/1-caching-with-instance-variables) provides one method to use to make this happen.