Re: Re: Association In rails

Colin Law
Mon, 16 Jul 2012 15:25:19 -0000

On 16 July 2012 16:03, Jean-Sébastien D.
<lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>
wrote:
> 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

Is it your code that is showing it wrong or is it inside activeadmin?
If it is your code then show us the bit of code displaying it.  If it
is activeadmin then I can''t help I am afraid.

Colin

>
> --
> Posted via http://www.ruby-forum.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.
> For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en-US.
>

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