class AlumniController < ApplicationController
  def index
  end

  def show
  	@thisID = params[:id]
  	@alum = Alumni.find(@thisID)
  	@astat = AlumniStatus.find_by_Alumni_id(@thisID)

  	@alumni_data = AlumniData.find_by_Alumni_id(@thisID)
    @editingAllowed = false
    @assignedtoid = -1

    if @tie = TieAlumniWithStudentMember.find_by_Alumni_id(@thisID)
      @assignedtoid = @tie.StudentMember_id
      if @assignedtoid == current_student_member.id
        @editingAllowed = true
      end
    else
      render plain: "This alumni has not been allotted to anyone yet. Contact the SysAdmin."
    end

  	# render plain: @alumni_data.inspect

  	# render plain: @astat.inspect
  end
end

class AlumniController < ApplicationController
  def index
  end

  def show
  	@thisID = params[:id]
  	@alum = Alumni.find(@thisID)
  	@astat = AlumniStatus.find_by_Alumni_id(@thisID)

  	@alumni_data = AlumniData.find_by_Alumni_id(@thisID)
    @editingAllowed = false
    @assignedtoid = -1

    if @tie = TieAlumniWithStudentMember.find_by_Alumni_id(@thisID)
      @assignedtoid = @tie.StudentMember_id
      if student_member_signed_in? && @assignedtoid == current_student_member.id
        @editingAllowed = true
      end
    else
      render plain: "This alumni has not been allotted to anyone yet. Contact the SysAdmin."
    end

  	# render plain: @alumni_data.inspect

  	# render plain: @astat.inspect
  end
end

Fix bug in the rendering of the student profile
Fix bug in the rendering of the student profile

Signed-off-by: Siddharth Kannan <805f056820c7a1cecc4ab591b8a0a604b501a0b7@gmail.com>