Example I want to create a dropdown of commands in an admin section. When the user selects one, such as
Purchase.all
User.where(:active => 1)
Basically any common commands that I would run in the console before a fully functional backend is created. I know this is a bit unconventional but im just looking for a rapid way to make some common admin queries available. Once the command has been run I'd like it display the exact output that would be displayed in the rails console. I've installed the Hirb gem which formats results in the console and would like that formatting to show when I output it in the view. Is this at all achievable?