search for: select_friday

Displaying 1 result from an estimated 1 matches for "select_friday".

2006 Jul 20
2
workweek_select
.... I''ve looked on google but couldn''t find it (because it isn''t there or I don''t know exactly what to search for). I''m not concerned about having the full railsy date select but it would be nice if it''s possible. This is the code so far: def select_friday(in_model, in_attr) # Scope breaker friday = "" # This seems to never trigger at all. A breakpoint before the conditional is never honored. Date.today.step(7, 1) do |day| if day.wday == 5 friday = day end end @dates = [] friday.step(20, -7)...