Commit 78c252e
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