gabrielshufelt / Real-Ratings-SOEN-341_Project_F24

0 stars 1 forks source link

Added Redirection Logic for Instructor Dashboard #36

Closed Luqman1008 closed 3 weeks ago

Luqman1008 commented 3 weeks ago

Description

  1. InstructorDashboardController Updates:

    • Added support for both HTML and JSON responses in the index, teams, and results actions.
    • Implemented conditional rendering using respond_to to serve either HTML views or JSON data.
  2. Redirection Logic:

    • Added custom logic in ApplicationController to handle redirects:
      • Instructors are redirected to the Instructor Dashboard upon sign in and sign up.
      • All users are redirected to the home page upon sign out.