Hi all,

I have has_many relationship like this:

class Tournament < ActiveRecord::Base
  has_many :participating_team
end

class ParticipatingTeam< ActiveRecord::Base
  belongs_to :team
  # database_field : no_of_player
end

While creating tournament you can create many participating_team
through "Create another" view of active_scaffold. So I want to copy
value of "no_of_player" column, what user has typed in first row to
second row, second row to third row and so on....

Everytime user clicks "Create another" he/she has to select the team
from the drop down and type the no of players participating. Generally
no_of_players participating from a team for a tournament is always
constant.Once user has type no_of_players participating we need to
copy the value for subsequent row....


Basically I think observe_field or somthing like that can solve the
problem but I don't know how to override subform in has_many
associations ???

I need copy feature in has_many association subform ???

Anybody has any idea ??

Thanks in advance
zeal

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" 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/activescaffold?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to