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