Select instance of model B in form where A has_one B and B belongs_to A in Ruby on Rails -


मेरे पास दो मॉडल हैं:

  class घर & lt; ActiveRecord :: बेस है_ऑन: श्रेणी के अंत वर्ग श्रेणी & lt; ActiveRecord :: बेस is_to: home end  

अब, मैं simple_form रत्न का उपयोग कर रहा हूँ जब मैं प्रपत्र में एक नया होम बनाऊँगा, तो मैं कई पूर्वनिर्धारित श्रेणियों में से एक को चुनने में सक्षम होना चाहता हूं (रेडियोबूटोन या ड्रॉपडाउन में) कोई भी विचार मैं साधारण मेल में कैसे काम कर सकता हूं?


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

asp.net mvc - How to attach sql database to a javascript graph -

c# - How to know the number of Threads created and limit the Tasks accordingly -