Displaying 1 result from an estimated 1 matches for "mailing_addresses_path".
2010 Sep 10
10
current_page? inside controller
Is there any easy way of using something like current_page? method
from ActionView::Helpers::UrlHelper inside controller ?
I have routing like:
resources :addresses
resources :mailing_addresses, :controller => ''addresses''
And I would like to do a check in my controller that would look like
this:
class AddressesController
def index
if current_page?(live_addresses_path)