-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
disable filters on index page #257
Comments
any suggestions? help, please! ) |
Hey @okliv, You can skip the sidebar rendering by calling the skip_sidebar! method in a before filter. Example: ActiveAdmin.register Post do
before_filter :skip_sidebar!, :only => :index
end That should solve your issue. |
Can anyone confirm that this doesn't work anymore? |
anymore since when? |
This doesn't work to me.. NameError in Admin::CompaniesController#index undefined local variable or method `skip_sidebar' for #Admin::CompaniesController:0x007f6ed80a2c58 My companies.rb: ActiveAdmin.register Company do index as: :block do |company| |
This no longer works for me either. I get an "undefined method" error. |
It doesn't work 0.32 "undefined method `skip_sidebar!'" |
anyone news? filter false would be great! |
try
|
doesn't work: |
gives same error.
|
Fixed in pull request #1454 |
By the way, just to answer the original question way up there at the top of this issue - "is it possible to disable filters on index page at all?" - the correct answer is to set config.filters = false in your resource registration, e.g.:
|
I get undefined method `filters=' for #ActiveAdmin::Resource:0x00000004d69e40 with version 0.4.4 and my resource file is:
|
You need version 0.5.0. |
From the docs
|
config.filters = false Works for me. Thanks @chetan-alef |
rails 5 |
@
yes this is working / with conditions:
|
|
is it possible to disable filters on index page at all? i need to use all width of page to show items table
something like:
index do
filters false
...
end
The text was updated successfully, but these errors were encountered: