Commit 40da3830
Changed files (7)
app
controllers
helpers
views
dashboard
config
test
functional
unit
helpers
app/controllers/dashboard_controller.rb
@@ -0,0 +1,7 @@
+class DashboardController < ApplicationController
+ before_filter :authenticate!
+
+ def index
+ end
+
+end
app/controllers/home_controller.rb
@@ -1,7 +1,4 @@
class HomeController < ApplicationController
- before_filter :authenticate!, :except => [:index]
-
def index
end
-
end
app/helpers/dashboard_helper.rb
@@ -0,0 +1,2 @@
+module DashboardHelper
+end
app/views/dashboard/index.html.erb
@@ -0,0 +1,1 @@
+<h1>welcome to cakeside</h1>
config/routes.rb
@@ -1,4 +1,6 @@
Cake::Application.routes.draw do
+ get "dashboard/index"
+
get "home/index"
devise_for :users
test/functional/dashboard_controller_test.rb
@@ -0,0 +1,9 @@
+require 'test_helper'
+
+class DashboardControllerTest < ActionController::TestCase
+ test "should get index" do
+ get :index
+ assert_response :success
+ end
+
+end
test/unit/helpers/dashboard_helper_test.rb
@@ -0,0 +1,4 @@
+require 'test_helper'
+
+class DashboardHelperTest < ActionView::TestCase
+end