Include Advanced

Hi, As I can do Include with parameters??

Example

Modelo.find(:all,:include => [otroModelo(param,param)])

On 8 March 2012 22:49, Rogelio A. RogeX [email protected] wrote:

Hi, As I can do Include with parameters??

Example

Modelo.find(:all,:include => [otroModelo(param,param)])

Modelo.find(:all,:include => :otro_modelo, :conditions =>
[“otro_modelos.param1 = ? and otro_modelos.param2 = ?”, param, param])

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs