Ruby on Rails
Friday, December 21, 2012
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
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/ihBCU3EpqvAJ.
For more options, visit https://groups.google.com/groups/opt_out.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment