It looks like Ruby 1.9.3 has a different idea of Date.parse. It doesn't want to parse the date from the query string as it was in the Cast.
def index
@events = Event.all
@date = params[:month] ? Date.parse("01-#{params[:month]}") : Date.today
end
Had to add the first day of the month to the controller to get it to parse it correctly. Else it parses it as if the month is the day, so the calendar never appears to change.
Same here under 3.2.13. The temporary workaround until this bug fix is released is to use
file_field_tag
instead -Pardon my affection for the old hash syntax.
It looks like Ruby 1.9.3 has a different idea of Date.parse. It doesn't want to parse the date from the query string as it was in the Cast.
Had to add the first day of the month to the controller to get it to parse it correctly. Else it parses it as if the month is the day, so the calendar never appears to change.