search for: initial_d

Displaying 2 results from an estimated 2 matches for "initial_d".

Did you mean: initial_id
2007 Feb 12
0
[864] trunk/wxruby2/samples/calendar/calendar.rb: Fix a couple of errors, add a note on CalendarDateAttr
...t;/span><span class="lines">@@ -33,14 +33,14 @@ </span><span class="cx"> end </span><span class="cx"> </span><span class="cx"> class MyCalendar < CalendarCtrl </span><del>- def initialize(parent, initial_date, calendar_flags) </del><ins>+ def initialize(parent, display_frame, initial_date, calendar_flags) </ins><span class="cx"> super(parent, -1, </span><span class="cx"> initial_date, </span><span class=&...
2006 May 22
13
How is this possible?
When run from the console, the following code works, when run through the WEBrick server I get a "You have a nil object where you didn''t expect it!" class Competition < ActiveRecord::Base has_many :comp_dates, :order=>:position def initial_date comp_dates.first end def display_dates i_d = initial_date if i_d.nil? return "unknown" else return i_d.month end end i_d should never be nil, in the first place; but how on earth does the i_d.month calls get reached when i_d is nil? -- Posted via...