cd /news/ai-tools/til-5-27-2026 · home topics ai-tools article
[ARTICLE · art-15831] src=dev.to pub= topic=ai-tools verified=true sentiment=· neutral

TIL 5/27/2026

A developer successfully set up user authentication for a Rails application using the Devise gem, generating migration files and configuring sign-out routes. The project initially encountered high token costs when using Claude Code for file modifications, as the AI was re-reading entire files for each change. The developer pivoted to a hybrid approach, writing basic controller and view code manually with a study buddy tool while reserving Claude for targeted bug fixes when credits become available.

read1 min publishedMay 27, 2026

Spin up from FirstDraft Co-pilot.

It's been a while since I've done this, so I'll outline the process.

  • Include devise gem on gemfile
  • bundle install devise gem
  • run rails generate file from co-pilot with users line
  • check generated migration file
  • run rails db:migrate
  • Change config.sign_out_via = :get on the config/initializers/devise.rb file
  • Spin up app, check that /users/sign_up and /users/sign_in screens work
  • First go through was successful
  • I began working off of Claude Code window to help run the rest of the files
  • Files ran, and routes began to be built out, but I learned that tokens ran out quickly because Claude was re-reading the whole file and making changes which is very expensive.
  • Next step was to get claude to recommend a path forward (build out habit route), then leverage first draft study buddy to help me build out that code.
  • New plan of attack - write out as much code using study buddy, build out the basic RCAV functionality by hand
  • Leverage Claude Claude once credits are available to work out bugs.
── more in #ai-tools 4 stories · sorted by recency
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/til-5-27-2026] indexed:0 read:1min 2026-05-27 ·