Displaying 2 results from an estimated 2 matches for "dataentrycontrol".
2006 Mar 08
2
inheritance problem with controllers
i have a controller like this:
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)...
2006 Apr 07
1
Help... Ajax scaffold problems
...'', :action => ''list'' %>
<%= render_component :controller => ''locations'', :action => ''list'' %>
<%= render_component :controller => ''listings'', :action => ''list'' %>
class DataEntryController < ApplicationController
   def search
             # search action calls component controllers
             redirect_to :controller=>''emails'', :action => ''list''
   end
end
class MailsController < ApplicationController
    def list
         # I ha...