belongs to - rails admin making a dropdown for on option -
hi im trying make 1 of fields in rails admin show ror project im trying make drop down menu gets name 1 of tables have made show it. products ptype show models how can this? , thanks
this codes
class product < activerecord::base has_many :ptypes rails_admin edit field :name field :ptype, :belongs_to_association field :body, :ck_editor field :value end end end class ptype < activerecord::base belongs_to :products rails_admin edit field :name end end end
this error shows
undefined method `[]' nil:nilclass request parameters: {"model_name"=>"product"}
also thanks!
Comments
Post a Comment