ruby on rails - Polymorphic filter collection: records from 2 tables -
In ActiveAdmin, I You need to specify a collection for it, but - of course - have come to record several models in a Bhurupik Association, can add me to record more than one of the tables that is uncertain. This is clearly wrong but whatever you are trying to do: Any thoughts appreciated. for an active admin & lt; 1.0.0, take a look at the bottom part of that section, it explains how to handle peerless associations. For Skriyadmin> = 1.0.0, see SO question about this enterable would like to include a filter for a Bhurupik Association, which in my case .
Filters: Accessible, Compile: [Reward. All, Challenge Total], Labels: "Prize / Challenge"
ActiveAdmin.register entry & Active # lt; 1.0.0, which uses meta_search filter: enterable_award_type_title_or_enterable_challenge_type_title & to # Skriyadmin gt; = 1.0.0, which uses looting filter: enterable_of_Award_type_title_or_enterable_of_Challenge_type_title # would be a more Programmatik approach to building this long name: filter ([prize, challenge]. Enterable | "enterable_of _ # {enterable.to_s} _type_title" end .join ("_ or _") To_sym end
Comments
Post a Comment