Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Method template_exists? or exists? not found in helpers #4939

Closed
superp opened this Issue · 1 comment

3 participants

@superp

In rails 3.2.1 this methods are not recognize from helpers.
This works in older rails versions 3.0.n

I not found any documentation where this methods migrate...
How can I call this methods from helper?

@rafaelfranca
Owner

You have to use the lookup_context method. Like this:

lookup_context.template_exists?("home")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.