hi all help me out guys

thanks in advance

On Tue, Jun 12, 2012 at 3:07 PM, hanish jadala
<[email protected]>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 <[email protected]>wrote:
>
>> On 12 June 2012 10:31, honey ruby <[email protected]> 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 to update
>> the
>> > value in batch_students table. How can i update values in batch_students
>> > table where there is no model for that table so that i can update
>> > directly.how to update table which is in joins.
>>
>>
>> Sounds like you want to change those habtm relationships to "has_many
>> :through => :batch_students"
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Ruby on Rails: Talk" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected].
>> For more options, visit this group at
>> http://groups.google.com/group/rubyonrails-talk?hl=en.
>>
>>
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to