On 29 March 2010 23:44, Nipuna Weerasinghe <[email protected]> wrote:
>
>
> Hi,
>
> I didn't mean both controllers reprecenting the same data, I meaned X's
> primary key is a foreing key in Y. need to seach both tables at onces
> and display both tables record in a form.

Could you insert your comments after the relevant part of the mail you
are responding to please, it is easier to follow the thread then.
Thanks

I think we had better start again, show me the relationships you have
defined between your models, such as
x has many y, y belongs to x, or whatever it is, and what fields are
in the tables (just the important ones)

Colin


> Thanks.
>
> Colin Law wrote:
>> On 29 March 2010 12:13, Nipuna Weerasinghe <[email protected]> wrote:
>>> are reprecenting the same data.
>> I think maybe you need get some basic rails knowledge.  I suggest you
>> have a look at the rails guides at http://guides.rubyonrails.org/,
>> Start with Getting Started (obviously).  To help with your problem
>> then look at ActiveRecord relationships.  Then look through the
>> others.  It is not that I do not want to answer your question
>> directly, but I think that you have some fundamental ideas wrong which
>> would be sorted by working through the guides.
>>
>> 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 [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to