Logo
Explore Help
Register Sign In
team-alpha/railsgoat
1
0
Fork 0
You've already forked railsgoat
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
ce239e84bec0a44c664fef30ef214d51cc08adb0
railsgoat/app/controllers/paid_time_off_controller.rb
T
Ken Johnson caf348f189 made some big changes here. The schedule had a has_one relationship with the PTO model. That is a problem since we only get one result back. meaning, a user cant have multiple scheduled events. This has been fixed with the use of has_many within the PTO model. Now, in relation to the PTO section, the next changes to happen are to be a fully functional create action that allows an event to be schedule, the form and controller has already been created. Umm, also, a calendar has been added and when we get the results back from a call to the create event action we will update that calendar. Think that is about it for now
2013-05-28 12:48:35 -04:00

8 lines
144 B
Ruby
Raw Blame History

class PaidTimeOffController < ApplicationController
def index
@pto = current_user.paid_time_off
@schedule = Schedule.new
end
end
Reference in New Issue View Git Blame Copy Permalink
Powered by Gitea Version: 1.26.1 Page: 71ms Template: 6ms
Auto
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API