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

Dave Aronson
2012-02-01T16:04:13Z

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....

-Dave

--
Dave Aronson:  Available Cleared Ruby on Rails Freelancer
(NoVa/DC/Remote) -- see www.DaveAronson.com, and blogs at
www.Codosaur.us, www.Dare2XL.com, www.RecruitingRants.com

--
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.