Demo of how to add bootstrap alerts for dismissable flashes
app/views/shared/_flashes.html.erb
<% if notice.present? %>
<div class="alert alert-success alert-dismissible fade show" role="alert">
<%= notice %>
Demo of how to add bootstrap alerts for dismissable flashes
app/views/shared/_flashes.html.erb
<% if notice.present? %>
<div class="alert alert-success alert-dismissible fade show" role="alert">
<%= notice %>
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
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.
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.
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.