Displaying 1 result from an estimated 1 matches for "data_entry_access".
2006 Mar 08
2
inheritance problem with controllers
...class SpoilageController < DataEntryController
before_filter { check_access_key(''_SP'') }
...
and in the parent class is this:
class DataEntryController < ApplicationController
def check_access_key(key)
if !@session[:user].admin &&
!@session[:user].data_entry_access.to_s.upcase.include?(key)
render :text=>''You dont have access to this function'',
:layout=>true
false # disallow
end
end
...
But it crashes, with this error:
undefined method `check_access_key'' for SpoilageController:Class
Why can''t the s...