initial commit
This commit is contained in:
12
app/controllers/users_controller.rb
Normal file
12
app/controllers/users_controller.rb
Normal file
@@ -0,0 +1,12 @@
|
||||
class UsersController < ApplicationController
|
||||
|
||||
|
||||
# GET /users
|
||||
# GET /users.json
|
||||
def index
|
||||
username = params[:username]
|
||||
@solutions = Solution.all.where(:username => username).order("created_at DESC")
|
||||
@guesses = Guess.all.where(:username => username).order("created_at DESC")
|
||||
end
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user