debshots/app/controllers/my_controller.rb

17 lines
398 B
Ruby

# User profiles and screenshot upload management
class MyController < ApplicationController
def index
end
def uploads
# @current_users_screenshots gets filled in ApplicationController
#
# Get packages that the uploaded screenshots belong to.
@packages = Package.joins(:screenshots).where(
'screenshots.id' => @current_users_screenshots)
end
def welcome
end
end