Re: [Rails] how to update a table which is connected with joins

2012-06-13 Thread Michael Pavling
On 13 June 2012 10:20, hanish jadala wrote: > hi Michael Pavling i can not change my > relationship because i have used in many other places if i change > relationship i have to make more changes in my app that is y i can not > change my relationship. So instead of doing a refactor to support the

Re: [Rails] how to update a table which is connected with joins

2012-06-13 Thread hanish jadala
thanks for your reply guys. hi Michael Pavling i can not change my relationship because i have used in many other places if i change relationship i have to make more changes in my app that is y i can not change my relationship. thanks in advance On Wed, Jun 13, 2012 at 1:51 PM, Michael Pavling

Re: [Rails] how to update a table which is connected with joins

2012-06-13 Thread Michael Pavling
On 13 June 2012 08:31, hanish jadala wrote: > hi all help me out guys > > > thanks in advance > > On Tue, Jun 12, 2012 at 3:07 PM, hanish jadala > wrote: >> >> no with our changing the relationship can i update values. We did - you refused to do it :-/ Let's just restate your position: You wan

Re: [Rails] how to update a table which is connected with joins

2012-06-13 Thread hanish jadala
hi all help me out guys thanks in advance On Tue, Jun 12, 2012 at 3:07 PM, hanish jadala wrote: > no with our changing the relationship can i update values. > > > thanks in advance > > > On Tue, Jun 12, 2012 at 3:02 PM, Michael Pavling wrote: > >> On 12 June 2012 10:31, honey ruby wrote: >> >

Re: [Rails] how to update a table which is connected with joins

2012-06-12 Thread hanish jadala
no with our changing the relationship can i update values. thanks in advance On Tue, Jun 12, 2012 at 3:02 PM, Michael Pavling wrote: > On 12 June 2012 10:31, honey ruby wrote: > > > > hi all there are two tables Student and Batch in there model i have > > has_and_belongs_to_many :graduated_ba

Re: [Rails] how to update a table which is connected with joins

2012-06-12 Thread Michael Pavling
On 12 June 2012 10:31, honey ruby wrote: > > hi all there are two tables Student and Batch in there model i have > has_and_belongs_to_many :graduated_batches, :class_name => 'Batch', > :join_table => 'batch_students' in Student table > i have added a new column to batch_students table and i want t

[Rails] how to update a table which is connected with joins

2012-06-12 Thread honey ruby
hi all there are two tables Student and Batch in there model i have has_and_belongs_to_many :graduated_batches, :class_name => 'Batch', :join_table => 'batch_students' in Student table and has_and_belongs_to_many :graduated_students, :class_name => 'Student', :join_table => 'batch_students' i