Skip to content

Black Deer Dev

Black Deer Dev
  • Home
  • About
  • Blog
  • Longform
  • Portfolio

Rails

Use Controller Via Routes in Rails Console

February 13, 2022 by Johnnyparky

If you need to hit a route from your Rails console and see the output you can use the following pattern. You now have a rails response object much like the integration tests.

Categories Blog, Uncategorized Tags Rails, Ruby Leave a comment

Explain Rails Active Record Query

February 12, 2022November 29, 2021 by Johnnyparky

You can output the raw query for an Active Record Query by tagging .explain at the end. Very useful for complex queries where it’s hard to understand what is happening under the hood 🤯. You can read the docs for more info.

Categories Uncategorized Tags Active Record, Query, Rails, Ruby, SQL Leave a comment

Categories

  • Blog
  • Longform
  • Portfolio
  • Review
  • Uncategorized

About

About me

Categories

  • Blog
  • Longform
  • Portfolio
  • Review
  • Uncategorized

Tags

Active Record AI Ajax Animation Bash Browser Claude Code Composer Docker Eloquent Error Git GraphQL Heroku Home Lab Ionic Javascript Keyboard Laravel Local LLM Mac Memory Migration MySql Network Nginx Npm osx pear pecl PHP Postgres Query Builder Rails Redis Relationships Ruby S3 Scraper SQL Undergrowth Upload Validation Vue zsa
© 2026 Black Deer Dev • Built with GeneratePress