Add show actions for note, artist, artist commentary versions.

Add these endpoints:

* /note_versions/1234
* /artist_versions/1234
* /artist_commentary_versions/1234

This is so the /ip_addresses listing can link to these endpoints.
This commit is contained in:
evazion
2019-11-11 12:52:50 -06:00
parent 9cf5b1f01c
commit 2aac42b112
7 changed files with 65 additions and 30 deletions

View File

@@ -6,4 +6,10 @@ class ArtistVersionsController < ApplicationController
respond_with(@artist_versions)
end
def show
@artist_version = ArtistVersion.find(params[:id])
respond_with(@artist_version) do |format|
format.html { redirect_to artist_versions_path(search: { artist_id: @artist_version.artist_id }) }
end
end
end