Rails 3+ uses view_context instead of @template in controllers