Skip to content

Commit 44edd6b

Browse files
authored
Merge pull request rails#53315 from aidanharan/fix-rails-version-selector
Fix guides version selector
2 parents ae848cf + 2acb4c4 commit 44edd6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

guides/source/layout.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
<select class="guides-version">
6060
<option value="https://edgeguides.rubyonrails.org/"<%= " selected" if @edge %>>Edge</option>
6161
<% %w[7.2 7.1 7.0 6.1 6.0 5.2 5.1 5.0 4.2 4.1 4.0 3.2 3.1 3.0 2.3].each do |version| %>
62-
<option value="https://guides.rubyonrails.org/v<%= version %>/"<%= " selected" if @version&.start_with?(version) %>><%= version %></option>
62+
<option value="https://guides.rubyonrails.org/v<%= version %>/"<%= " selected" if @version&.start_with?("v#{version}") %>><%= version %></option>
6363
<% end %>
6464
</select>
6565
</span>

0 commit comments

Comments
 (0)