📚 Searching the Rails Docs
🧭 Why This Matters
Rails is modular and consists of many gems. To understand method definitions or specific implementation details, we must know how to efficiently search through its codebase and documentation.
🔍 1. Using Rails Guides
🔗 API Guides
- Visit: https://api.rubyonrails.org
- Search for any method like
valid?
- Scroll to the bottom of the doc to view:
- 📄 Source (View inline)
- 🔗 On GitHub (Jump to GitHub repo)
📘 Edge Guides
🔧 2. Inspecting Code with Pry
Step 1: Add Gem
gem "pry-byebug"
Then run:
bundle install