# File app/controllers/sys_conf_adm_controller.rb, line 295 def get_table valid_tables = [:people] # :proposals to be added later on..? begin @table = params[:table].to_sym raise NameError unless valid_tables.include? @table @model = @table.to_s.classify.constantize rescue NameError, NoMethodError flash[:error] << _('Invalid table requested') redirect_to '/' return false end end