Re: [Rails] how to update a table which is connected with joins
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 <pavling@gmail.com> wrote:
On 13 June 2012 08:31, hanish jadala <emailtohoneyruby@gmail.com> wrote:We did - you refused to do it :-/
> hi all help me out guys
>
>
> thanks in advance
>
> On Tue, Jun 12, 2012 at 3:07 PM, hanish jadala <emailtohoneyruby@gmail.com>
> wrote:
>>
>> no with our changing the relationship can i update values.
Let's just restate your position: You want to have a habtm join, with
extra information in the join table. This type of join typically does
not have a model, and thus no way of updating those extra fields
(although a "feature" of Rails does/did extend columns in the join
table to both sides of the association).
You don't want to add a new model and join through it (the way it
would be done normally).
So you see the circular problem you have...
Let's take one step back; rather than demanding that people "help you
out", maybe you can explain *why* you don't want to change your
association...
--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home