Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Controllers and custom actions, overriding CRUD actions. #756

Closed
kimerseen opened this Issue · 1 comment

2 participants

@kimerseen

Hi everybody,

Is it possible to use controllers with rails_admin, for example, as I
would do it with activescaffold plugin, so that I can override
standard actions such as new, create, edit etc, but also can add
custom actions per controller. Actually, I am planning to make an
application that is based on rails_admin only, so that root is raills
admin root. And for admin and user authorization I am using cancan.
Now, when I add a controller, it has its own default application
layout and routes, but I like rails_admin layout and want to use it as
default and custom actions. I have seen, that somebody suggested to
add custom actions to rails_admin.rb initializer using
formatted_value, but I did not understand it. Please, could someone
explain me with examples how to add custom actions and override CRUD
actions? For example, I have a web service where I want to send a
bunch of reports to, usually, in old rails app, I would check all
reports and use a link, that executes an action and sends checked
reports to the service. Please, help!

Best regards,
Kim

@mshibuya
Collaborator

Closing because custom actions are already implemented.

@mshibuya mshibuya 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.