search for: timesheetcontroller

Displaying 2 results from an estimated 2 matches for "timesheetcontroller".

2006 Feb 28
1
Oracle OraNumber problem with Authentication. Please help!
..._to"] = nil else redirect_to :controller => "weblog" end else flash["alert"] = "Login failed!" redirect_to :action => "index" end end .... end The class i access session["employee"] from: class TimesheetController < ApplicationController model :employee before_filter :authenticate protected def authenticate unless session["employee"] session["return_to"] = @request.request_uri redirect_to :controller => "login" return false end end en...
2006 Jul 12
6
Showing rows on a page
This is my first rails program and I?m having trouble figuring out how to show rows on the page when there may not be rows in the database. There are 3 tables, employees, cost_codes and timesheet, I will simplify them when describing them later on. When an employee logs in, I would like to pull up their timesheet, which should consist of one row per cost code. So timesheet would look a