app/controllers/images_controller.rb
# !! This is a kludge until we get active storage working
# PATCH /images/123/rotate
This is a kludge until we get active storage working
PATCH /images/123/rotate
This is a kludge until we get active storage working PATCH / images / 123 / rotate
def rotate
    begin
      @image.rotate = params.require(:image).require(:rotate)
      @image.image_file.reprocess!
      flash[:notice] = 'Image rotated.'
    rescue ActionController::ParameterMissing
      flash[:notice] ='Select a rotation option.'
    end
    render :show
  end
def rotate begin @image . rotate = params . require ( :image ) . require ( :rotate ) @image . image_file . reprocess! flash [ :notice ] = 'Image rotated.' rescue ActionController :: ParameterMissing flash [ :notice ] = 'Select a rotation option.' end render :show end
This is a kludge until we get active storage working
PATCH /images/123/rotate
This is a kludge until we get active storage working PATCH / images / 123 / rotate