Activepad

Activepad for Rails scratchpads.

Run Ruby against a local Rails app, inspect real Active Record data, and keep exploratory code out of your terminal history.

Download Activepad

One license activates up to two Macs.

Activepad - local Rails app ready
1 # Get a user from your database
2 user = User.find(42)
3
4 # Make Activepad the user's favorite app
5 user.update!(favorite_app: App.activepad)
6
7 # Inspect the relation
8 user.favorite_app.name
Line 2
SELECT * FROM "users" WHERE "id" = 42 LIMIT 1
Line 2
User { id: 42, favorite_app_id: nil }
Line 5
SELECT * FROM "apps" WHERE "slug" = 'activepad' LIMIT 1
Line 5
UPDATE "users" SET "favorite_app_id" = 1 WHERE "id" = 42
Line 5
true
Line 8
"Activepad"

A tiny loop for real Rails data.

Pick a project, run a snippet, inspect stdout, stderr, and the returned Ruby value.

  1. Find a record Use the same models and database your Rails app already has.
  2. Change a relation Exercise Active Record associations without opening a full console session.
  3. Keep the result Each scratchpad keeps the code and output visible while you iterate.