Add a HomeController

This commit is contained in:
Petko Bordjukov 2014-07-29 13:38:20 +03:00
parent dc03078217
commit 44b88349d7
4 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,4 @@
class HomeController < ApplicationController
def index
end
end

View File

@ -0,0 +1,2 @@
h1 Home#index
p Find me in app/views/home/index.html.slim

View File

@ -1,5 +1,9 @@
Rails.application.routes.draw do Rails.application.routes.draw do
get 'home/index'
devise_for :users devise_for :users
root 'home#index'
# The priority is based upon order of creation: first created -> highest priority. # The priority is based upon order of creation: first created -> highest priority.
# See how all your routes lay out with "rake routes". # See how all your routes lay out with "rake routes".

View File

@ -0,0 +1,12 @@
require 'rails_helper'
RSpec.describe HomeController, :type => :controller do
describe "GET index" do
it "returns http success" do
get :index
expect(response).to be_success
end
end
end