TIL 5/27/2026
Source: Dev.to
Process Overview
-
Include the devise gem in your
Gemfilegem 'devise' -
Install the gem
bundle install -
Generate Devise files (e.g., the users model)
rails generate devise:install rails generate devise User -
Review the generated migration file and then run the migration
rails db:migrate -
Adjust the sign‑out method in
config/initializers/devise.rb# Change the default sign out method config.sign_out_via = :get -
Start the Rails server and verify that the authentication routes work
- Sign‑up page:
http://localhost:3000/users/sign_up - Sign‑in page:
http://localhost:3000/users/sign_in
- Sign‑up page:
-
The initial setup succeeded.
-
Continued development using Claude’s code window.
- Noted high token consumption because Claude re‑read the entire file on each change.
-
Asked Claude for a recommended next step (building a habit route) and leveraged First Draft Study Buddy to scaffold the code.
-
Revised plan:
- Write as much code as possible with Study Buddy.
- Manually implement the core RCAV (Read‑Create‑Update‑Validate) functionality.
-
When Claude credits become available again, use Claude to troubleshoot remaining bugs.