i have a user object that includes a birthday datetime field.
when the user is created, he selects the date via the helper
datetime_select ‘user’, ‘birthday’
which works great. the date is saved to the database, and it works
great…but when i display the datetime_select helper after the user is
created, the correct date isn’t displayed - - the previous time is
selected.
how do i place the user’s birth-date as the selected date?
If you’re using date_select, change the displayed date by modifying the
attribute on the @user object. Use select_date if you instead wish to
select a date unrelated to an AR object.
–
We develop, watch us RoR, in numbers too big to ignore.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.