app/controllers/reviews_controller.rb
#update routine updates a modified review. If the review is successfully modified, User will be notified using flash
update routine updates a modified review. If the review is successfully modified, User will be notified using flash
update routine updates a modified review . If the review is successfully modified User will be notified using flash
def update
		@reviews = @share.reviews.order(priority: :asc)
		@reviewToAlter = Review.find(params[:id])
		@review = Review.find(params[:id])
		if @review.update(review_params)
			redirect_to share_reviews_path(@share), notice: 'Review successfully updated!'
		else
			flash[:alert] = "Error : #{@review.errors.full_messages.to_sentence}"
			render :edit
		end
	end
def update @reviews = @share . reviews . order ( priority : :asc ) @reviewToAlter = Review . find ( params [ :id ] ) @review = Review . find ( params [ :id ] ) if @review . update ( review_params ) redirect_to share_reviews_path ( @share ) , notice : 'Review successfully updated!' else flash [ :alert ] = "Error : #{@review.errors.full_messages.to_sentence}" render :edit end end
update routine updates a modified review.
update routine updates a modified review .