Skip to content

Specify no version for link to Ruby on Rails API

What does this MR do and why?

I've found an instance in docs where the link to https://api.rubyonrails.org/ is designated with the older version of Rails. I find it not helpful as it makes us unsure if the named api still lives today. On the other hand some links point to the latest released version of reference with https://api.rubyonrails.org/classes/*. I'd propose that we exclude the version-specific reference so readers can navigate themselves to the up-to-date version of the reference.

This MR attempts to correct not only the instance that I have encountered but also all occurrence of version-specific references, which I have applied using this command:

git grep -l 'https://api.rubyonrails.org/v' | xargs sd '/v\d[\.\d]+' ''

I appreciate feedbacks. Thanks in advance!

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports