Added welcome and profile actions to the my controller
This commit is contained in:
parent
8e4dd058b6
commit
020a864736
12 changed files with 125 additions and 19 deletions
17
app/controllers/my_controller.rb
Normal file
17
app/controllers/my_controller.rb
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
# 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue