Merge pull request #635 from DonovanDMC/artists-new-link

[Artists] Fix "new" link in link_to_artist
This commit is contained in:
Earlopain 2024-04-21 19:34:48 +02:00 committed by GitHub
commit 4df14cfec5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -7,7 +7,7 @@ module ArtistsHelper
if artist
link_to(artist.name, artist_path(artist))
else
link = link_to(name, new_artist_path(name: name))
link = link_to(name, new_artist_path(artist: { name: name }))
notice = tag.span("*", class: "new-artist", title: "No artist with this name currently exists.")
"#{link} #{notice}".html_safe
end