I like to play with dynamic programming languages before I get confident regarding their dynamic behaviors. While there are online ruby sandbox sources available, I prefer to test it out locally.
In javascript a html file with script tag is sufficient to write any sample javascript code.
What's the equivalent of forming this sandbox for ruby with...?
1. a boilerplate
2. manually setting up ruby sandbox (prefered)
If you just want a ruby sandbox $ irb
will do the trick.
If you want a ruby on rails sand box $ rails c -s
short for $ rails console ––sandbox
.
This command loads our Rails application, connects to the database and automatically starts a database transaction. All database operations performed within this console session are rolled back upon leaving the console.