<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/alternative-text-in-attachments-and-more-2mmhdzmcl" -->

---
title: Alternative text in attachments and more | daily.dev
description: A weekly Rails digest highlights the upcoming Rails World 2026 Opening Keynote livestream on September 23, plus several merged pull requests: Action Text...
canonical: https://daily.dev/posts/alternative-text-in-attachments-and-more-2mmhdzmcl
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Alternative text in attachments and more | daily.dev
og:description: A weekly Rails digest highlights the upcoming Rails World 2026 Opening Keynote livestream on September 23, plus several merged pull requests: Action Text...
og:url: https://daily.dev/posts/alternative-text-in-attachments-and-more-2mmhdzmcl
og:image: https://api.daily.dev/og/posts/2mmhdZmcL.png
og:image:alt: Alternative text in attachments and more
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Alternative text in attachments and more

**[Rails](https://daily.dev/sources/rails)** · 2 min read · 2 upvotes · 0 comments

## Summary

A weekly Rails digest highlights the upcoming Rails World 2026 Opening Keynote livestream on September 23, plus several merged pull requests: Action Text attachments now support an alt attribute independent of captions, generated error pages are excluded from GitHub language stats, a docker-entrypoint bug that skipped database preparation when extra bin/rails server flags were passed is fixed, and the Layouts and Rendering guide has been rewritten on Edge Guides. The Active Support Core Extensions guide is open for community review.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://rubyonrails.org/2026/9/11/this-week-in-rails>

## Questions this post answers

### How do I add alt text to an Action Text attachment in Rails?

Action Text attachments now accept an alt attribute, independent of the caption, exposed as ActionText::Attachment#alt and rendered as the image's alternative text. An attachment can have a caption, alt text, both, or neither. Set it with ActionText::Attachment.from_attachable(blob, alt: "A racecar on a track").

_Rails developers tracking Action Text accessibility updates can follow release notes like this on daily.dev._

### Why does my Rails docker-entrypoint script skip database preparation when I add extra bin/rails server flags?

Passing an additional flag such as -b 0.0.0.0 (needed to bind to all interfaces under Docker or Podman) shifted the word 'server' out of its expected position in the argument list, so the docker-entrypoint check silently failed to detect it and never ran database preparation. This was fixed in a Rails pull request to correctly support extra server flags.

_Rails teams deploying with Docker can catch entrypoint fixes like this via daily.dev before they hit production._

### Why is GitHub reporting my new Rails 8 application as an HTML repository?

The five error pages generated by Rails since version 8.0 total about 36 KB of HTML, more than the Ruby code in a freshly generated application, causing GitHub's language detection to classify new Rails apps as HTML repositories. A fix marks these generated error pages so they are excluded from language statistics.

_Rails developers puzzled by repo language stats can spot fixes like this by following Rails updates on daily.dev._

## Similar posts on daily.dev

- [Action Text gets Markdown conversion, editor links in devcontainers...](https://daily.dev/posts/action-text-gets-markdown-conversion-editor-links-in-devcontainers--fxglcvbvm) · This Week in Rails · 0 upvotes · 0 comments
- [This Week in Rails: August 28, 2026](https://daily.dev/posts/this-week-in-rails-august-28-2026-kighrmzea) · Rails · 3 upvotes · 0 comments
- [This Week in Rails: May 8, 2026](https://daily.dev/posts/this-week-in-rails-may-8-2026-2xjup5wmk) · This Week in Rails · 1 upvotes · 0 comments
- [This Week in Rails: Better Guides, Better Framework](https://daily.dev/posts/this-week-in-rails-better-guides-better-framework-cc7vjcik2) · Ruby Flow · 0 upvotes · 0 comments
- ['Tis the season for contributing to Rails](https://daily.dev/posts/tis-the-season-for-contributing-to-rails-egmzzdzbv) · This Week in Rails · 2 upvotes · 0 comments

---

Tags: [#docker](https://daily.dev/tags/docker), [#ruby](https://daily.dev/tags/ruby), [#rails](https://daily.dev/tags/rails)

[View this post on daily.dev](https://daily.dev/posts/alternative-text-in-attachments-and-more-2mmhdzmcl)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Alternative text in attachments and more","url":"https://daily.dev/posts/alternative-text-in-attachments-and-more-2mmhdzmcl","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/alternative-text-in-attachments-and-more-2mmhdzmcl"},"datePublished":"2026-09-11T07:02:12.982Z","dateModified":"2026-10-15T02:22:34.142Z","description":"A weekly Rails digest highlights the upcoming Rails World 2026 Opening Keynote livestream on September 23, plus several merged pull requests: Action Text...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/8e4f5a3c3e5361719ef48f4eb467a7f8?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/8e4f5a3c3e5361719ef48f4eb467a7f8?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Rails","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Rails","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/d44501fa43a2441a9e27a08367cdfa52","url":"https://daily.dev/sources/rails"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/alternative-text-in-attachments-and-more-2mmhdzmcl","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"docker,ruby,rails","timeRequired":"PT2M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Rails","item":"https://daily.dev/sources/rails"},{"@type":"ListItem","position":3,"name":"Alternative text in attachments and more"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/alternative-text-in-attachments-and-more-2mmhdzmcl#faq","mainEntity":[{"@type":"Question","name":"How do I add alt text to an Action Text attachment in Rails?","acceptedAnswer":{"@type":"Answer","text":"Action Text attachments now accept an alt attribute, independent of the caption, exposed as ActionText::Attachment#alt and rendered as the image's alternative text. An attachment can have a caption, alt text, both, or neither. Set it with ActionText::Attachment.from_attachable(blob, alt: \"A racecar on a track\"). Rails developers tracking Action Text accessibility updates can follow release notes like this on daily.dev."}},{"@type":"Question","name":"Why does my Rails docker-entrypoint script skip database preparation when I add extra bin/rails server flags?","acceptedAnswer":{"@type":"Answer","text":"Passing an additional flag such as -b 0.0.0.0 (needed to bind to all interfaces under Docker or Podman) shifted the word 'server' out of its expected position in the argument list, so the docker-entrypoint check silently failed to detect it and never ran database preparation. This was fixed in a Rails pull request to correctly support extra server flags. Rails teams deploying with Docker can catch entrypoint fixes like this via daily.dev before they hit production."}},{"@type":"Question","name":"Why is GitHub reporting my new Rails 8 application as an HTML repository?","acceptedAnswer":{"@type":"Answer","text":"The five error pages generated by Rails since version 8.0 total about 36 KB of HTML, more than the Ruby code in a freshly generated application, causing GitHub's language detection to classify new Rails apps as HTML repositories. A fix marks these generated error pages so they are excluded from language statistics. Rails developers puzzled by repo language stats can spot fixes like this by following Rails updates on daily.dev."}}]}
```

