app/controllers/posts_controller.rb
#similar to index, this method shows a specific post from the browse all paintings page, or a specific post from the artists' index page

similar to index, this method shows a specific post from the browse all paintings page, or a specific post from the artists' index page
similar to index this method shows a specific post from the browse all paintings page or a specific post from the artists ' index page
def show
        if params[:artist_id]
            @post = Post.find(params[:id])
        else
            @post = Post.find(params[:id])
        end
    end
def show if params [ :artist_id ] @post = Post . find ( params [ :id ] ) else @post = Post . find ( params [ :id ] ) end end
similar to index, this method shows a specific post from the browse all paintings page, or a specific post from the artists' index page
similar to index this method shows a specific post from the browse all paintings page or a specific post from the artists ' index page