Hi,
What is the use of :include in finding the results…
for eg: c = Student.find(12,:include=>:department)
if anybody knows the solution plz reply
Hi,
What is the use of :include in finding the results…
for eg: c = Student.find(12,:include=>:department)
if anybody knows the solution plz reply
:include is used to specify join tables in the query.
Bryan R. wrote:
:include is used to specify join tables in the query.
Thank you sir
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs