SELECT * FROM "users" WHERE "id" = 42 LIMIT 1
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.
One license activates up to two Macs.
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
User { id: 42, favorite_app_id: nil }
SELECT * FROM "apps" WHERE "slug" = 'activepad' LIMIT 1
UPDATE "users" SET "favorite_app_id" = 1 WHERE "id" = 42
true
"Activepad"
A tiny loop for real Rails data.
Pick a project, run a snippet, inspect stdout, stderr, and the returned Ruby value.
- Find a record Use the same models and database your Rails app already has.
- Change a relation Exercise Active Record associations without opening a full console session.
- Keep the result Each scratchpad keeps the code and output visible while you iterate.
# Get a user from your database