Commit 78c252e

mo khan <mo@mokhan.ca>
2014-03-30 22:13:43
start to build the login page.
1 parent 5ac08ec
Changed files (3)
app/controllers/login_controller.rb
@@ -0,0 +1,5 @@
+class LoginController < ApplicationController
+  def new
+    render nothing: true
+  end
+end
config/routes.rb
@@ -1,4 +1,5 @@
 Mocode::Application.routes.draw do
+  get 'logins/new', to: 'login#new'
   # The priority is based upon order of creation: first created -> highest priority.
   # See how all your routes lay out with "rake routes".
 
spec/controllers/login_controller_spec.rb
@@ -0,0 +1,10 @@
+require "spec_helper"
+
+describe LoginController do
+  context "#new" do
+    it "loads the login page" do
+      get :new
+      response.should be_ok
+    end
+  end
+end