I am a little confused about the best way to work with date_select. I
in my views it generates a simple input form that allows for the entry
month and date information. If I just leave it at that, great!
But what if now in the controller, I want to work with the date
actually want to take the user input date and compute a new date some
days in the future.
How should I use “start_date(1i), start_date(2i), start_date(3i)” in a
controller to fill in a new SQL date column?
Does there exist helpers to convert from “start_date(1i),
start_date(3i)” to a Ruby Class like Date or Time?
Page 203 of “Agile Web D. with Rails” implies that SQL Types
“interval, date” are mapped to the Ruby Class “Date” and the SQL Types
“datetime, time” are mapped to the Ruby Class “Time”. Why isn’t it that
date_select returns a Date object?
Thanks in advance for setting my understanding straight in this matter.