Running stand-alone Rails script

Viewed 21

I'm submitting a bug report to jsonapi-resources. Their issue template asks that I create a MCVE using their template. This looks like a self-contained script for a rails-based project. I've only ever run similar code as an actual rails project with separate files and using rails server. My question is, how do I run this self-contained script?

1 Answers

I ran it with

ruby <filename>

It seems to programmatically install gems.

Related