`rails c` with meturbocharge your use of the interactive console
summary
Console uses IRB with Bundler or full Rails boot to give access to gems and app context; Ripper’s SX shows the actual AST a method produces; reline provides multi line editing and history; use Benchmark.measure to time suspect ActiveRecord calls, run to_sql and explain to inspect queries and planner nodes, and spin up production with the sandbox mode flag to test heavy-data behavior while rolling back changes.
AI-written summary · about
chapters (15)
- 0:00Welcome
- 1:47What is Rails console
- 3:11How Rails console works
- 5:42Storing context with IRB
- 8:56Execution context in Ruby
- 9:18Parsing Ruby with Ripper
- 13:38Interactivity features
- 15:43Supercharging product dev
- 16:04Performance debugging
- 19:35Console in production safely
- 21:20Fast changes in production
- 22:45Fast experiments with console
- 23:07Product decisions with data
- 24:10Console commands cheat sheet
- 26:19Closing
related talks
29mYes, You Can Work on Rails & any other Gem
34mCode Spelunking: teach yourself how Rails works
31mRails Flavored Ruby
57mFuture of Developer Acceleration with Rails
38mRails on Ruby: How Ruby Makes Rails Great
31mActiveSupport and ActiveModel
40mGrowing internal tooling from the console up
29mRVM & Essential Rails Development Tools
