admin interface generation
This commit is contained in:
12
app/controllers/admin/auth_controller.rb
Normal file
12
app/controllers/admin/auth_controller.rb
Normal file
@ -0,0 +1,12 @@
|
||||
module Admin
|
||||
class AuthController < AdminController
|
||||
def login
|
||||
end
|
||||
|
||||
def auth
|
||||
end
|
||||
|
||||
def logout
|
||||
end
|
||||
end
|
||||
end
|
21
app/controllers/admin/question_controller.rb
Normal file
21
app/controllers/admin/question_controller.rb
Normal file
@ -0,0 +1,21 @@
|
||||
module Admin
|
||||
class QuestionController < AdminController
|
||||
def index
|
||||
end
|
||||
|
||||
def new
|
||||
end
|
||||
|
||||
def create
|
||||
end
|
||||
|
||||
def view
|
||||
end
|
||||
|
||||
def edit
|
||||
end
|
||||
|
||||
def update
|
||||
end
|
||||
end
|
||||
end
|
21
app/controllers/admin/quiz_controller.rb
Normal file
21
app/controllers/admin/quiz_controller.rb
Normal file
@ -0,0 +1,21 @@
|
||||
module Admin
|
||||
class QuizController < AdminController
|
||||
def index
|
||||
end
|
||||
|
||||
def new
|
||||
end
|
||||
|
||||
def create
|
||||
end
|
||||
|
||||
def view
|
||||
end
|
||||
|
||||
def edit
|
||||
end
|
||||
|
||||
def update
|
||||
end
|
||||
end
|
||||
end
|
21
app/controllers/admin/user_controller.rb
Normal file
21
app/controllers/admin/user_controller.rb
Normal file
@ -0,0 +1,21 @@
|
||||
module Admin
|
||||
class UserController < AdminController
|
||||
def index
|
||||
end
|
||||
|
||||
def new
|
||||
end
|
||||
|
||||
def create
|
||||
end
|
||||
|
||||
def view
|
||||
end
|
||||
|
||||
def edit
|
||||
end
|
||||
|
||||
def update
|
||||
end
|
||||
end
|
||||
end
|
2
app/controllers/admin_controller.rb
Normal file
2
app/controllers/admin_controller.rb
Normal file
@ -0,0 +1,2 @@
|
||||
class AdminController < ApplicationController
|
||||
end
|
2
app/views/admin/auth/login.html.erb
Normal file
2
app/views/admin/auth/login.html.erb
Normal file
@ -0,0 +1,2 @@
|
||||
<h1>Admin::Auth#login</h1>
|
||||
<p>Find me in app/views/admin/auth/login.html.erb</p>
|
2
app/views/admin/auth/logout.html.erb
Normal file
2
app/views/admin/auth/logout.html.erb
Normal file
@ -0,0 +1,2 @@
|
||||
<h1>Admin::Auth#logout</h1>
|
||||
<p>Find me in app/views/admin/auth/logout.html.erb</p>
|
2
app/views/admin/question/edit.html.erb
Normal file
2
app/views/admin/question/edit.html.erb
Normal file
@ -0,0 +1,2 @@
|
||||
<h1>Admin::Questions#edit</h1>
|
||||
<p>Find me in app/views/admin/questions/edit.html.erb</p>
|
2
app/views/admin/question/index.html.erb
Normal file
2
app/views/admin/question/index.html.erb
Normal file
@ -0,0 +1,2 @@
|
||||
<h1>Admin::Questions#index</h1>
|
||||
<p>Find me in app/views/admin/questions/index.html.erb</p>
|
2
app/views/admin/question/new.html.erb
Normal file
2
app/views/admin/question/new.html.erb
Normal file
@ -0,0 +1,2 @@
|
||||
<h1>Admin::Questions#new</h1>
|
||||
<p>Find me in app/views/admin/questions/new.html.erb</p>
|
2
app/views/admin/question/view.html.erb
Normal file
2
app/views/admin/question/view.html.erb
Normal file
@ -0,0 +1,2 @@
|
||||
<h1>Admin::Questions#view</h1>
|
||||
<p>Find me in app/views/admin/questions/view.html.erb</p>
|
2
app/views/admin/quiz/edit.html.erb
Normal file
2
app/views/admin/quiz/edit.html.erb
Normal file
@ -0,0 +1,2 @@
|
||||
<h1>Admin::Quizes#edit</h1>
|
||||
<p>Find me in app/views/admin/quizes/edit.html.erb</p>
|
2
app/views/admin/quiz/index.html.erb
Normal file
2
app/views/admin/quiz/index.html.erb
Normal file
@ -0,0 +1,2 @@
|
||||
<h1>Admin::Quizes#index</h1>
|
||||
<p>Find me in app/views/admin/quizes/index.html.erb</p>
|
2
app/views/admin/quiz/new.html.erb
Normal file
2
app/views/admin/quiz/new.html.erb
Normal file
@ -0,0 +1,2 @@
|
||||
<h1>Admin::Quizes#new</h1>
|
||||
<p>Find me in app/views/admin/quizes/new.html.erb</p>
|
2
app/views/admin/quiz/view.html.erb
Normal file
2
app/views/admin/quiz/view.html.erb
Normal file
@ -0,0 +1,2 @@
|
||||
<h1>Admin::Quizes#view</h1>
|
||||
<p>Find me in app/views/admin/quizes/view.html.erb</p>
|
2
app/views/admin/user/edit.html.erb
Normal file
2
app/views/admin/user/edit.html.erb
Normal file
@ -0,0 +1,2 @@
|
||||
<h1>Admin::Users#edit</h1>
|
||||
<p>Find me in app/views/admin/users/edit.html.erb</p>
|
2
app/views/admin/user/index.html.erb
Normal file
2
app/views/admin/user/index.html.erb
Normal file
@ -0,0 +1,2 @@
|
||||
<h1>Admin::Users#index</h1>
|
||||
<p>Find me in app/views/admin/users/index.html.erb</p>
|
2
app/views/admin/user/new.html.erb
Normal file
2
app/views/admin/user/new.html.erb
Normal file
@ -0,0 +1,2 @@
|
||||
<h1>Admin::Users#new</h1>
|
||||
<p>Find me in app/views/admin/users/new.html.erb</p>
|
2
app/views/admin/user/view.html.erb
Normal file
2
app/views/admin/user/view.html.erb
Normal file
@ -0,0 +1,2 @@
|
||||
<h1>Admin::Users#view</h1>
|
||||
<p>Find me in app/views/admin/users/view.html.erb</p>
|
Reference in New Issue
Block a user