/artists/show_or_new: make public; add "artist doesn't exist" page.
* Fix access denied error when anonymous users open /artists/show_or_new. * When the artist doesn't exist, take user to "artist doesn't exist" page instead of redirecting to /artists/new.
This commit is contained in:
5
app/views/artists/show_or_new.html.erb
Normal file
5
app/views/artists/show_or_new.html.erb
Normal file
@@ -0,0 +1,5 @@
|
||||
<%= render layout: "show" do %>
|
||||
<div>
|
||||
<p>This artist entry does not exist. <%= link_to "Create new artist entry", new_artist_path(name: params[:name]) %>.</p>
|
||||
</div>
|
||||
<% end %>
|
||||
Reference in New Issue
Block a user