Hey there, it’s Emmanuel Hayford. A fresh batch of Rails changes just dropped, let’s get into it.
Action Text to_markdown generates markdown links for blobs
When a rendering context is available, blob attachments now produce real markdown links ( for images, [title](url) for others) instead of plain-text placeholders.
Add to_markdown to Action Text, mirroring to_plain_text
Introduces to_markdown across the Action Text stack (Content, Fragment, RichText, Attachment), converting rich text HTML into Markdown with support for inline formatting, block elements, lists, links, tables, and more. The underlying BottomUpReducer has been extracted into its own class for reuse by both plain-text and markdown conversion.
Render MissingAttachable as “☒” in plain text
MissingAttachable now implements attachable_plain_text_representation, returning the same “☒” character used in its HTML partial instead of rendering nothing.
Add content_type parameter to HTTP authentication methods
request_http_basic_authentication, request_http_digest_authentication, and request_http_token_authentication now accept an optional content_type parameter to customize the 401 response content type. The existing message parameter is also now exposed at the http_basic_authenticate_with level.
Add RAILS_HOST_APP_PATH support for editor links in devcontainer/Docker environments
A new RAILS_HOST_APP_PATH environment variable lets Rails translate container file paths to host paths when generating editor URLs on error pages. This makes “open in editor” links work correctly in devcontainer and Docker setups.
You can view the whole list of changes here. We had 14 contributors to the Rails codebase this past week!
Until next time!
Subscribe to get these updates mailed to you.