My old friend Orkut sent me an email yesterday, the first in a long time . . .
I actually googled this and found a workable but ugly solution:
## view code
<%= date_select('range', 'start_date', :order => [:month, :day, :year])%>
## controller code
@start_date = Date.civil(params[:range][:"start_date(1i)"].to_i,params[:range][:"start_date(2i)"].to_i,params[:range][:"start_date(3i)"].to_i)
I needed to include the hour and minute as well, and didn't want to cram more arguments into the Date.civil call (actually Time.zone.local), so I cleaned up the code a bit.
Hoping to leave the internet a little better for the next guy, I thought I'd post the code.
## view code
<%= datetime_select('range_start', 'date', :order => [:month, :day, :year, :hour,:minute]) %>
# controller code
@start_date = Time.zone.local(*params[:range_start].sort.map(&:last).map(&:to_i))
I thought Happy Town had a decent chance of being entertaining:
"Executive producer Josh Appelbaum and others on the show are huge fans of the Twin Peaks"
"Executive producer Scott Rosenberg says he's more a Stephen King fan."
"So if you think it's too much like Twin Peaks, blame them. If you think it's not enough like Twin Peaks, blame me."
Facebook has decided to do away with notifications - the little messages notifying you of things friends did on platform applications, or giving you updates on applications you have installed:
The Dashboard