Questions tagged «nested-forms»

21
您可以嵌套html表单吗?
是否可以嵌套这样的html表单 <form name="mainForm"> <form name="subForm"> </form> </form> 这样两种形式都起作用?我的朋友对此有问题,部分subForm作品没有问题。
451 html  nested-forms 

3
Rails使用has_many嵌套表格:通过,如何编辑联接模型的属性?
使用accepts_nested_attributes_for时如何编辑联接模型的属性? 我有3个模型:链接器加入的主题和文章 class Topic < ActiveRecord::Base has_many :linkers has_many :articles, :through => :linkers, :foreign_key => :article_id accepts_nested_attributes_for :articles end class Article < ActiveRecord::Base has_many :linkers has_many :topics, :through => :linkers, :foreign_key => :topic_id end class Linker < ActiveRecord::Base #this is the join model, has extra attributes like "relevance" belongs_to :topic …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.