🚂

Lazyrails

A lazygit-style TUI for Rails developers.

Routes, migrations, models, tests, server, gems, rake.
All in one split-pane interface.

gem install lazyrails-tui
Lazyrails TUI cycling through panels: Status, Server, Routes, Database, Models

13+ Panels. One Interface.

Everything the Rails CLI offers, organized into a single navigable split-pane view.

📊

Status

Rails version, Ruby version, git branch, database adapter — your project at a glance.

🚀

Server

Start/stop Rails server with live log streaming. Auto-detects Puma, WEBrick, and bin/dev.

🚦

Routes

Browse all routes with verb coloring. Drill into controller source, see if the action method exists.

🗄

Database

Schema browser with column types, nullability, defaults. Run interactive SQL queries on dev.

📦

Models

Every model with its associations, validations, and columns. Introspected from live Rails APIs.

🧪

Tests

Run your test suite, individual files, or specific tests. See pass/fail with timing.

💎

Gems

Browse all dependencies from Gemfile.lock with version and group info.

🧹

Rake

Browse and execute rake tasks. See task descriptions and namespaces.

💻

Console

Evaluate Ruby expressions via rails runner. Quick REPL without leaving the TUI.

🔐

Credentials

Decrypt and view per-environment credentials securely.

📜

Logs

Tail request logs live. Filter by slow requests or errors.

✉️

Mailers & Jobs

Preview ActionMailer output. Browse, retry, and discard Solid Queue jobs.

Browsing and filtering routes in Lazyrails

Browse & Filter Routes

See every route in your app with color-coded HTTP verbs. Drill into any route to see its controller, action method, and helpers.

Filter instantly with /, group by controller with g, or scroll through the full list with j/k.

/ filter g group Enter detail
Generating a Rails model from inside Lazyrails

Run Generators In-Place

Scaffold models, controllers, and migrations without leaving the TUI. Type your field definitions and watch the output stream in real-time.

Every generator command is logged with automatic undo support — rails destroy is one keystroke away.

G generate x actions u undo
Evaluating Ruby expressions in the Lazyrails console

Inline Ruby Console

Evaluate any Ruby expression against your running app without dropping to rails console. Check record counts, inspect config, test queries.

Results are color-coded — green for success, red for errors — and stay in your history so you can scroll back through previous evaluations.

e evaluate j/k scroll history

Built With Chamomile

Lazyrails is the flagship application for Chamomile — the complete Ruby TUI framework.

Try Lazyrails

Install it in any Rails project and launch from the terminal.

gem install lazyrails-tui