Re: [Rails] Accessing attributes of one table from different model (which is related to another table)

2015-04-19 Thread Colin Law
On 19 April 2015 at 08:14, Padmahas Bn wrote: > Hello all, I referred the rails guides from documentation section, but I > cannot solve this problem. > > Problem: > 1. I have member and receipt model (which should have corresponding members > and receipts table). > 2. Now I created a model called

[Rails] Accessing attributes of one table from different model (which is related to another table)

2015-04-19 Thread Padmahas Bn
Hello all, I referred the rails guides from documentation section, but I cannot solve this problem. Problem: 1. I have member and receipt model (which should have corresponding members and receipts table). 2. Now I created a model called recovery to write some business logic. (logic must be in