sql query in active record

hi all,

if i want to write a query select * from a,b where a.b_id=b.id in active record
using joins,condition how can i write that

in docs i found for conditions you do by giving “?” and then the parameter eg. a.b_id=?
but it takes b.id as string i.e a.b_id=‘b.id’
i dont want that

any suggestions

thanks in advance

regards
gaurav

hi,

i have that in my model files

regards
gaurav