search for: experiences_knowledg

Displaying 1 result from an estimated 1 matches for "experiences_knowledg".

Did you mean: experiences_knowledges
2006 Mar 29
0
has_and_belongs_to_many and collections management
..., k.id ] } @experiences = Experience.find(:all, :order => ''name'').collect { |k| [ k.name, k.id ] } if @request.post? @knowledges = @params[:knowledges] for knowledge in @knowledges new_knowledge = Knowledge.new ## In fact, I need to create a new entry in experiences_knowledges with ## the knowledge id and the experience id selected. How can I do that? @person.knowledges << knowledge end if @person.save flash[''notice''] = ''Person was successfully created.'' redirect_to :action => ''show...