# Add new action in rails controller

**URL:** <https://meta.discourse.org/t/add-new-action-in-rails-controller/298157>\
**Category:** Development\
**Tags:** plugin-api\
**Created:** [March 6, 2024, 10:21am UTC](https://meta.discourse.org/t/add-new-action-in-rails-controller/298157 "2024-03-06T10:21:55Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)\
**Post date:** [March 6, 2024, 2:39pm UTC](https://meta.discourse.org/t/add-new-action-in-rails-controller/298157/5 "2024-03-06T14:39:08Z")

</div>

> [@maaatt](#):
>
> so exporting to CSV is the only way to show him the data

With the [Data Explorer](https://meta.discourse.org/t/32566?silent=true) plugin, you have a button to export in CVS or JSON (and, recently, even one to show a graph).

* * *

You can also allow specific groups to access the query (if we are not talking about admin users here)

 ![image](https://global.discourse-cdn.com/meta/original/4X/4/2/7/4270599c7d9a6047a254d5e326531663206f8343.png)

Then, the user can see a Reports on the group page. He can run the query, and then he can export the results to CSV.

 ![image](https://global.discourse-cdn.com/meta/original/4X/5/b/b/5bbaefd4c5b739708ebb217720a79ed86caeb695.png)

Would that work?

---

_[View the full topic](https://meta.discourse.org/t/add-new-action-in-rails-controller/298157)._
