{"slug": "til-5-27-2026", "title": "TIL 5/27/2026", "summary": "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.", "body_md": "Spin up from FirstDraft Co-pilot.\n\nIt's been a while since I've done this, so I'll outline the process.\n\n- Include devise gem on gemfile\n- bundle install devise gem\n- run rails generate file from co-pilot with users line\n- check generated migration file\n- run rails db:migrate\n- Change config.sign_out_via = :get on the config/initializers/devise.rb file\n- Spin up app, check that /users/sign_up and /users/sign_in screens work\n- First go through was successful\n- I began working off of Claude Code window to help run the rest of the files\n- 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.\n- 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.\n- New plan of attack - write out as much code using study buddy, build out the basic RCAV functionality by hand\n- Leverage Claude Claude once credits are available to work out bugs.", "url": "https://wpnews.pro/news/til-5-27-2026", "canonical_source": "https://dev.to/nofoster/til-5272026-4dg5", "published_at": "2026-05-27 22:08:33+00:00", "updated_at": "2026-05-27 22:41:02.232560+00:00", "lang": "en", "topics": ["ai-tools", "ai-products", "large-language-models"], "entities": ["FirstDraft Co-pilot", "Claude Code", "Claude", "Devise"], "alternates": {"html": "https://wpnews.pro/news/til-5-27-2026", "markdown": "https://wpnews.pro/news/til-5-27-2026.md", "text": "https://wpnews.pro/news/til-5-27-2026.txt", "jsonld": "https://wpnews.pro/news/til-5-27-2026.jsonld"}}