Ruby on Rails 8 · Maintenance and tools

Run code in the app

Run a Ruby snippet with the app loaded.

bin/rails runner "puts User.count"

Official Ruby on Rails 8 documentation

More maintenance and tools commands

All maintenance and tools commands · Ruby on Rails 8 cheatsheet

Was this page helpful?