search for: employees_control

Displaying 3 results from an estimated 3 matches for "employees_control".

2006 Mar 24
6
login forms , redirect_to and ajax-scaffold problems
Hi, I have a standard type authentication technique direct from AWDWR, so there is a before_filter :authorize_employee, :except => :login in my employees_controller.rb the authorize_employee is in application.rb def authorize_employee unless session[:employee_id] flash[:notice] = "Please log in" # save the URL the user requested so we can hop back to it # after login session[:jumpto] =...
2005 Jul 07
3
NameError Exception
...d local variable or method `within'' for Document:Class /app/models/document.rb:8 (eval):5:in `has_and_belongs_to_many'' /app/models/category.rb:3 (eval):5:in `has_many'' /app/models/department.rb:3 (eval):5:in `belongs_to'' /app/models/employee.rb:2 app/controllers/employees_controller.rb:8:in `list'' app/controllers/employees_controller.rb:3:in `index'' Show framework trace c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.11.0/lib/active_record/base.rb:792:in `method_missing'' c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.1.0/lib/active_support/depende...
2012 Dec 03
2
Stop User from Changing URL
I have an authentication and autherization system built on the same lines outlined by Michael Hartl, rails tutorial. Here is the employees_controller.rb: class EmployeesController < ApplicationController before_filter :signed_in_employee, only: [:index, :edit, :update] before_filter :correct_employee, only: [:edit, :update] etc etc private def signed_in_employee...