Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Server hanging when using extreme values for date_select :start_year

#6627

Did just accidently something like that:

<%= f.date_select :birthday, :start_year => Date.today.year - 100.years , :default => {:year => 1999} %>

the fault is the 100.years, it should be just 100...

but as i tried this out (on mongrel and Webrick) first the application stoped responding and after waiting a minute or so my total ubuntu froze... some kind of exception would be a lot better :-D

Reported by S.D.Eagle · March 26th, 2011 @ 05:58 PM

State: new
Milestone: none
Assigned to: nobody
Importance: none

Activity

  1. Dalto Curvelano Junior
    Dalto Curvelano Junior

    This issue occurs because the build_options method loops forever when the range between start_date and end_date is too big.

    Pull request created at https://github.com/rails/rails/pull/239

    March 27th, 2011 @ 10:40 AM