I have started with Rails now, and I find difficult to understand the creation of relationship between two resources. Enquiry_Resource - id - dAte - CustomerID - ProductID Customer_Resource - id (customerID that is in Enquiry_REsource) - Name - Address Product_Resource - id (mentioned in EnquiryResource) - name - Price Now how do i link these while creating resources. and how will i query the data like if I want to display enquriyid, date, customer name, product name. Any help would be appreciated!! Cheers! Deepak
on 2012-12-21 23:21
on 2012-12-22 14:57
On Fri, Dec 21, 2012 at 5:29 AM, Deepak Dhananjaya <deepak.dhananjaya@gmail.com> wrote: > I have started with Rails now, and I find difficult to understand the > creation of relationship between two resources. Please show your code.
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.