RailsCasts Pro episodes are now free!

Learn more or hide this

J Grubb's Profile

GitHub User: JGrubb

Site: ignoredByDinosaurs.com

Comments by J Grubb

Avatar

Same here under 3.2.13. The temporary workaround until this bug fix is released is to use file_field_tag instead -

<%= file_field_tag :image, :multiple => true, :name => "painting[image]" %>

Pardon my affection for the old hash syntax.

Avatar

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.