There be a website

This commit is contained in:
Roscoe 2025-09-21 03:09:52 +01:00
commit af0907c7c3
Signed by: RoscoeDaWah
SSH key fingerprint: SHA256:Hqn452XQ1ETzUt/FthJu6+OFkS4NBxCv5VQSEvuk7CE
65 changed files with 708 additions and 14 deletions

View file

@ -0,0 +1,9 @@
class HomeController < ApplicationController
def years_between_dates(date_from, date_to)
return (date_to - date_from).to_i / 365
end
def index
@age = years_between_dates(DateTime.civil_from_format(:local, 2005, 6, 7), DateTime.now)
end
end