Re: Re: Re: User and Game Association help.

Colin Law
2012-02-01T16:33:45Z

On 1 February 2012 16:04, Dave Aronson
<googlegroups2dave-BRiZGj7G2yRXqviUI+FSNg@public.gmane.org>
wrote:
> On Wed, Feb 1, 2012 at 08:21, Colin Law
<clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:
>
>> On 1 February 2012 12:41, Christopher Jones
<lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:
> ...
>>> Stupid me, I simply added the following line to my create method in
the
>>> controller.
>>>
>>> @game.user = current_user
>>
>> I would think carefully about what you think that line is doing.  Is
>> the game currently associated with a user.
>
> Seeing as it''s the create method, probably not, unless
he''s taken
> specific steps to associate it previously in new or create....

Good point, that is what comes from not reading the post carefully.
Now it is me that is embarrassed :)
Apologies to Christopher for casting aspersions on his code.

Colin

--
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com.