how to disable history and export #1591

Closed
bayarja opened this Issue Apr 3, 2013 · 4 comments

Comments

Projects
None yet
2 participants
@bayarja

bayarja commented Apr 3, 2013

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

This comment has been minimized.

Show comment Hide comment
@neilang

neilang Apr 4, 2013

Contributor

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
Contributor

neilang commented Apr 4, 2013

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

This comment has been minimized.

Show comment Hide comment
@bayarja

bayarja Apr 4, 2013

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

bayarja commented Apr 4, 2013

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

@neilang

This comment has been minimized.

Show comment Hide comment
@neilang

neilang Apr 4, 2013

Contributor

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.

Contributor

neilang commented Apr 4, 2013

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

This comment has been minimized.

Show comment Hide comment
@bayarja

bayarja Apr 4, 2013

it's done. Thanks Neilang.

bayarja commented Apr 4, 2013

it's done. Thanks Neilang.

@bayarja bayarja closed this Apr 4, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment