Running stand-alone Rails script

80 views Asked by At

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

There are 1 answers

1
Code-Apprentice On

I ran it with

ruby <filename>

It seems to programmatically install gems.