app/controllers/swimming_pool_reviews_controller.rb
# Returns the review for a specific review id.
#
# === Params:
# - id: the Review.id
#
Returns the review for a specific review id.
Returns the review for a specific review id .
def show
    @review = SwimmingPoolReview.find_by_id(params[:id])
    if @review.nil?
      if request.format.json?
        render( status: 406, json: {success: false} ) and return
      else
        redirect_back( fallback_location: root_path ) and return
      end
    end
    @title = I18n.t('swimming_pool_review.title_show')
    respond_with( @review )
  end
def show @review = SwimmingPoolReview . find_by_id ( params [ :id ] ) if @review . nil? if request . format . json? render ( status : 406 , json : { success : false } ) and return else redirect_back ( fallback_location : root_path ) and return end end @title = I18n . t ( 'swimming_pool_review.title_show' ) respond_with ( @review ) end
Returns the review for a specific review id.
Returns the review for a specific review id .