Skip to content

Instantly share code, notes, and snippets.

@mikebannister
Created May 23, 2011 04:31
Show Gist options
  • Save mikebannister/986227 to your computer and use it in GitHub Desktop.
Save mikebannister/986227 to your computer and use it in GitHub Desktop.
def new
@timesheet = Timesheet.new
@timesheet.employee = Employee.find(params[:employee_id]) rescue nil
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment