Re: Foreign key

Colin Law
2010-07-08T07:56:08Z

On 8 July 2010 08:52, Michael Pavling
<pavling-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:
> On 8 July 2010 08:41, Rajkumar Surabhi
<lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:
>> In my application i have 2 tables, 1.logins and 2. credits.
>>
>> how to mention this in model associtations
>
> You''ll find lots of "getting started" guides online - no
sense
> rewriting them here:
> http://www.google.co.uk/search?q=getting+started+with+ruby+on+rails

Particularly the guides at http://guides.rubyonrails.org/index.html.
There is one on ActiveRecord Associations which should contain what
you want to know (assuming you have worked through the Getting Started
one first).

Colin