Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ActiveAdmin.register Teacher do
- permit_params :name, :contact_id
- form do |f|
- f.semantic_errors *f.object.errors.keys
- f.inputs "Details" do
- f.input :name
- f.input :contact_id, :as => :select, :collection => Contact.all.collect {|contact| [contact.email] }
- end
- f.actions
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement