On 1 February 2012 16:04, Dave Aronson
<googlegroups2d...@davearonson.com> wrote:
> 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....

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