rails generate scaffold chirp user:references body:text deleted_at:datetime
resource vs controller vs model vs scaffold
using -h // --help flag in cli
Checkin sends an email to all members of a team based on the check_in configuration. Members can simply reply to this email and it will create a update record with their reply. As a manager, keeping track of what your direct reports are working on is time consuming. Syncronous meetings are annoying, time consuming, and not effective. Automating checkins via email automates this process and keeps a written record, while being minimally invasive.
Your requirements are definitely dumb. It does not matter who gave them to you. It's particularly dangerous if a smart person gave them to because you may not question them enough.
Whatever requirement or constraint you have must come with a name (not a department). That person who is putting forward the requirement/constraint must take responsibility for that requirement.
Very important. If you are not occasionally adding things back in, you are not deleting enough. The bias tends to be really strongly towards adding a process or step in case we need it. Ruthlessly remove parts/processes and don't hedge your bets.
This guide will walk you through adding a ChatGPT-like messaging stream to your Ruby on Rails 7 app using ruby-openai, Rails 7, Hotwire, Turbostream, Sidekiq and Tailwind. All code included below!
First, add the ruby-openai gem! Needs to be at least version 4. Add Sidekiq too.
This is how we created news.dpi.dev, a feed of all DPI trainees blog posts on dev.to. We used sidekiq for background processing, but you could easily use another gem like good_job.
app/controllers/news_controller.rb
class NewsController < ApplicationController
layout "news"
skip_before_action :authenticate_user!
before_action { authorize(:news) }
def index