You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in case...
following is the code for hiding 'any' from all select option in activeadmin
module ActiveAdmin
module Inputs
class FilterSelectInput < ::Formtastic::Inputs::SelectInput
def input_options
super.merge(:include_blank => false)
end
end
end
end
put this code in initializer/active_admin.rb
The text was updated successfully, but these errors were encountered:
@jpmckinney :
i moved on with other solution....
someone added "if" to filter, so i used that one...anyways, i am closing this issue.
i tried above but didn't work out. Thanks for replying
I want to hide or remove 'any' from select option based on user role... is there any way to do that?
this is what i tried
filter :product_type, :as=>:select, :include_blank =>false, :collection => ['a','b','c'] ...but no effect
in case...
following is the code for hiding 'any' from all select option in activeadmin
module ActiveAdmin
module Inputs
class FilterSelectInput < ::Formtastic::Inputs::SelectInput
def input_options
super.merge(:include_blank => false)
end
end
end
end
put this code in initializer/active_admin.rb
The text was updated successfully, but these errors were encountered: