Skip to content

Commit

Permalink
generate admin controller
Browse files Browse the repository at this point in the history
  • Loading branch information
kyanny committed Jan 25, 2010
1 parent 68a916e commit db8c0a5
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 0 deletions.
11 changes: 11 additions & 0 deletions depot/app/controllers/admin_controller.rb
@@ -0,0 +1,11 @@
class AdminController < ApplicationController
def login
end

def logout
end

def index
end

end
2 changes: 2 additions & 0 deletions depot/app/helpers/admin_helper.rb
@@ -0,0 +1,2 @@
module AdminHelper
end
2 changes: 2 additions & 0 deletions depot/app/views/admin/index.html.erb
@@ -0,0 +1,2 @@
<h1>Admin#index</h1>
<p>Find me in app/views/admin/index.html.erb</p>
2 changes: 2 additions & 0 deletions depot/app/views/admin/login.html.erb
@@ -0,0 +1,2 @@
<h1>Admin#login</h1>
<p>Find me in app/views/admin/login.html.erb</p>
2 changes: 2 additions & 0 deletions depot/app/views/admin/logout.html.erb
@@ -0,0 +1,2 @@
<h1>Admin#logout</h1>
<p>Find me in app/views/admin/logout.html.erb</p>
8 changes: 8 additions & 0 deletions depot/test/functional/admin_controller_test.rb
@@ -0,0 +1,8 @@
require 'test_helper'

class AdminControllerTest < ActionController::TestCase
# Replace this with your real tests.
test "the truth" do
assert true
end
end

0 comments on commit db8c0a5

Please sign in to comment.