Limited offer 60% off on your first year, for new customers. Applied automatically at checkout. See pricing

Actions

Perform actions on your records

Give your team buttons for the things they actually do: approving, publishing, resending, refunding. Actions run your own code against your records, right from the admin.

Why you'll love it

Clear feedback
Respond with a success or error message, redirect somewhere else, send a file for download or update the page with a Turbo Stream.
Ask for input
Need a reason, a date or an amount before running? List the fields the action needs, and Uchi asks for them before it runs.
Right where you need them
Decide which pages an action appears on. The first actions are shown as buttons, the rest are tucked away in a menu.
It's all your code
An action is a plain Ruby class with a perform method. Send emails, call APIs, enqueue jobs or generate reports - anything your app can do.

Implementation

An action is a Ruby class

Subclass Uchi::Action, implement perform and return a response. Then add the action to your repository, and the button shows up on your records.

Dig deeper

Everything you need to know, in the documentation.

Ready to build an awesome admin for your app?