मैं इन संगठनों के लिए प्रपत्र को अनुकूलित:ActiveAdmin
class Course < ActiveRecord::Base
has_many :signup
has_many :user, :through => :signup
accepts_nested_attributes_for :signup
end
class User < ActiveRecord::Base
has_many :signup
has_many :course, :through => :signup
accepts_nested_attributes_for :signup
end
class Signup < ActiveRecord::Base
belongs_to :course
belongs_to :user
end
अब
, मैं "पंजीकरण के लिए" ActiveAdmin प्रपत्र अनुकूलित करने के लिए चाहते हैं, तो यह पाठ्यक्रम के शीर्षक और उन के नाम से पता चलता एक टेक्स्टफील्ड के रूप में चयन के रूप में नहीं।
डिफ़ॉल्ट रूप पहले से ही ऐसा करता है, हालांकि मुझे फॉर्म को और अनुकूलित करने की आवश्यकता है और मैं डिफ़ॉल्ट रूप को पुन: उत्पन्न नहीं कर सकता।