I changed the name of 'start' to 'begin' and it works now in debug.

Thanks
Stijn

On 19 sep, 11:13, Frederick Cheung <[EMAIL PROTECTED]> wrote:
> On 19 Sep 2008, at 08:36,Tarscher<[EMAIL PROTECTED]> wrote:
>
>
>
> > self.start indeed returns a nil value but the strange this is that it
> > is when I look at the self.attributes -> start in the debugger it is
> > correctly filled in. Is start a name you can't use in rails?
>
> Oh, you may be running into an edge case when running under the  
> debugger. Old versions of rdebug would define their own start method.
>
> Fred
>
> > Regards,
> > Stijn
>
> > On 18 sep, 23:21, Frederick Cheung <[EMAIL PROTECTED]> wrote:
> >> On Sep 18, 10:19 pm,Tarscher<[EMAIL PROTECTED]> wrote:
>
> >>> This results in You have a nil object when you didn't expect it!
> >>> The error occurred while evaluating nil.<=
>
> >> It's not telling you that self is nil (which as you point out it  
> >> isn't
> >> usually), it's telling you that self.start is nil.
>
> >> Fred
>
> >>> The strange thing is that self is definatly not nil? Is this a  
> >>> problem
> >>> with DateTime.now()?
>
> >>> regards,
> >>> Stijn
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to