Category "ruby-on-rails"

Parametrized join in Rails 4

I am doing manual join and I need to pass a parameter to its ON clause: Foo.joins("LEFT OUTER JOIN bars ON foos.id = bars.foo_id AND bars.baz = #{baz}") Is t

Parametrized join in Rails 4

I am doing manual join and I need to pass a parameter to its ON clause: Foo.joins("LEFT OUTER JOIN bars ON foos.id = bars.foo_id AND bars.baz = #{baz}") Is t