Being new to RoR, I have had difficulty finding information regarding
date formats for active scaffold. I have a DATE field on the create
form of one of my controllers. For this specific controller, I would
like to capture the year only (i.e. %Y). I have already created a
helper to display the %Y date on the view, but I cannot figure out how
to do a similar change to the form to only request the user for the
year.
Being new to RoR, I have had difficulty finding information regarding
date formats for active scaffold. I have a DATE field on the create
form of one of my controllers. For this specific controller, I would
like to capture the year only (i.e. %Y). I have already created a
helper to display the %Y date on the view, but I cannot figure out how
to do a similar change to the form to only request the user for the
year.