Re: Association In rails

Jean-Sébastien D.
Mon, 16 Jul 2012 15:03:20 -0000

Colin Law wrote in post #1068920:
> On 16 July 2012 15:29, Jean-Sbastien D.
<lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:
>> tv_show_manager.rb
>>
>>
>> Essentially A customer may have many managers. A Manager is assign to
>> one tv_show
>>
>> What his wrong with my code?
>
> Give us a clue.  Are you getting an error of some sort?  If so it
> might be helpful to tell us what it is, we are not telepathic (at
> least I am not).  Don''t forget to show us the bit of code
generating
> the error if any.
>
> Colin

Sorry,

I am using activeadmin has a backend. When creating a new manager, on
the field Customer I see customer, but when it comes to show possible
tv_show it show me #<TvShow:0xb69ca84 which i am assuming is making a
reference to memory because the relations don''t work. Not to sure how
to
test it in Ruby console otherwise