Ruby on Rails Tuesday, December 3, 2013

Am 2013-12-03 19:46, schrieb Ronny Fauth:
> Am 2013-12-03 19:26, schrieb Walter Lee Davis:
>
>> Okay, that looks right, as far as it goes. Now what happens in your
>> console if you find a phonenote, and ask for its supervisions?
>>
>> p = Phonenote.first
>> p.supervisions
>>
>> # error, or array?
>>
>
> 2.0.0-p353 :002 > p.supervisions
> NoMethodError: undefined method `supervisions' for
> #<Phonenote:0xb042698>
>
> Ronny

2.0.0-p353 :002 > p.supervisions
NoMethodError: undefined method `supervisions' for
#<Phonenote:0xb042698>

2.0.0-p353 :003 > p.supervisioncategories
NoMethodError: undefined method `supervisioncategories' for
#<Phonenote:0xb042698>

2.0.0-p353 :004 > p.supervisioncategory_id
=> nil
2.0.0-p353 :005 >

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/0df05323119ec7bd9fe1442aa1da2703%40briefkasten.daishi.de.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment