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:
@@ -5,4 +5,11 @@ class ArtistCommentaryVersionsController < ApplicationController
|
||||
@commentary_versions = ArtistCommentaryVersion.paginated_search(params)
|
||||
respond_with(@commentary_versions)
|
||||
end
|
||||
|
||||
def show
|
||||
@commentary_version = ArtistCommentaryVersion.find(params[:id])
|
||||
respond_with(@commentary_version) do |format|
|
||||
format.html { redirect_to artist_commentary_versions_path(search: { post_id: @commentary_version.post_id }) }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -6,4 +6,11 @@ class NoteVersionsController < ApplicationController
|
||||
@note_versions = @note_versions.includes(:updater) if request.format.html?
|
||||
respond_with(@note_versions)
|
||||
end
|
||||
|
||||
def show
|
||||
@note_version = NoteVersion.find(params[:id])
|
||||
respond_with(@note_version) do |format|
|
||||
format.html { redirect_to note_versions_path(search: { note_id: @note_version.note_id }) }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user