Commit 5238593
Changed files (3)
app/controllers/logins_controller.rb
@@ -2,7 +2,6 @@ class LoginsController < ApplicationController
before_filter :load_dependencies
def new
- render nothing: true
end
def create
config/routes.rb
@@ -1,6 +1,7 @@
Mocode::Application.routes.draw do
resources :logins, only: [:new, :create]
get 'dashboard', to: 'dashboard#index'
+ root 'logins#new'
# The priority is based upon order of creation: first created -> highest priority.
# See how all your routes lay out with "rake routes".
spec/routing/root_routing_spec.rb
@@ -0,0 +1,7 @@
+require "spec_helper"
+
+describe '/' do
+ it "should route to the login page" do
+ expect(get: '/').to route_to(controller: 'logins', action: 'new')
+ end
+end