Hi,
I have a user and address model.
In one of my view I am using “@user.address” 5 times.
My question is weather will it fire 5 different queries to the database?
Thanks,
Tushar
Hi,
I have a user and address model.
In one of my view I am using “@user.address” 5 times.
My question is weather will it fire 5 different queries to the database?
Thanks,
Tushar
nope
On Mon, Jan 2, 2012 at 1:10 PM, Tushar G. [email protected]
wrote:
–
–
sαη∂ιρ Rαηѕιηg
twitter, github @sandipransing
skype sandip.ransing
why so? any reason behind it.
Thanks,
Tushar
Hai!
can you try this way:
@user[0].address
@user[1].address
@user[2].address
@user[3].address
@user[4].address
bye
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