search for: ip_restricted

Displaying 1 result from an estimated 1 matches for "ip_restricted".

Did you mean: __restricted
2008 Sep 24
3
caches_page :if not executing (but caches_action :if) does
...PagesController < ApplicationController caches_page :show, :if => Proc.new {|c| ["home", "something- else"].index(c.request.path_parameters["id"])} before_filter :admin_required, :only => [ :index, :new, :create, :delete, :edit, :update ] before_filter :IP_restricted, :only => [ :index, :new, :create, :delete, :edit, :update ] #In this case, the :if executes correctly class PagesController < ApplicationController # just changing caches_page to caches_action works caches_action :show, :if => Proc.new {|c| ["home", "something- else&q...