i have a page with a date_select on it. When the date is passed, i
need it to pass back to the same action (reloading the page with a new
date). Now, i want the default date to be yesterday. This is for the
first time the page is hit, but i don't know how to set my controller
up like that.
@start = params[:start]
do some stuff here
how do i let the controller know to pick yesterday for a start date
( ruby date object ) if nothing was passed to the action ?