On Wed, Feb 1, 2012 at 08:21, Colin Law <clan...@googlemail.com> wrote:

> On 1 February 2012 12:41, Christopher Jones <li...@ruby-forum.com> 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@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to