T
T
Tesla_Rails2014-04-02 17:36:01
Ruby on Rails
Tesla_Rails, 2014-04-02 17:36:01

How to add your action to activeadmin?

How can I add a custom action to activeadmin so that next to Edit and Delete there is a Download action?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeny Matveev, 2014-04-22
@Tesla_Rails

Everything is in the documentation: www.activeadmin.info/docs/8-custom-actions.html

ActiveAdmin.register Post do

    controller do
      # This code is evaluated within the controller class

      def define_a_method
        # Instance method
      end
    end

  end

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question