Sprankelprachtig aan/afmeldsysteem

dashboard_controller.rb 393B

12345678910111213141516
  1. class DashboardController < ApplicationController
  2. before_action :require_login!
  3. def home
  4. @upcoming = current_person
  5. .participants
  6. .joins(:activity)
  7. .where('activities.start >= ?', DateTime.now)
  8. .order('activities.start ASC')
  9. @user_organized = @upcoming
  10. .where(is_organizer: true)
  11. @need_response = @upcoming
  12. .where(attending: nil)
  13. end
  14. end