Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

how to disable history and export #1591

Closed
bayarja opened this Issue · 4 comments

2 participants

@bayarja

i'm using rails_admin 0.4.1 version on rails version 3.1.13. i don't know how to disable export and history?

@neilang

Have you tried adding disabling it through CanCan?

cannot :export, :all
cannot :history, :all

Or removing it through the config.actions?

config.actions do
    # root actions
    dashboard                     # mandatory

    # collection actions
    index                         # mandatory
    new
    # export
    # history_index
    bulk_delete

    # member actions

    show
    edit
    delete
    # history_show
    show_in_app
end
@bayarja

i tried but failed. i trying disable that buttons from rails_admin.

@neilang

This is my rails_admin.rb config: https://gist.github.com/neilang/5308900 (don't forget to restart the server).

This config works for me under rails 3.2.13 and rails_admin 0.4.1.

@bayarja

it's done. Thanks Neilang.

@bayarja bayarja closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.