Skip to content

Commit b30a842

Browse files
committed
Added the home controller and very primitive view.
1 parent a185592 commit b30a842

File tree

9 files changed

+33
-241
lines changed

9 files changed

+33
-241
lines changed

app/assets/javascripts/home.js.coffee

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Place all the behaviors and hooks related to the matching controller here.
2+
# All this logic will automatically be available in application.js.
3+
# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/

app/assets/stylesheets/home.css.scss

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// Place all the styles related to the home controller here.
2+
// They will automatically be included in application.css.
3+
// You can use Sass (SCSS) here: http://sass-lang.com/

app/controllers/home_controller.rb

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
class HomeController < ApplicationController
2+
end

app/helpers/home_helper.rb

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
module HomeHelper
2+
end

app/views/home/index.html.haml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
%h1 I'm alive!

config/routes.rb

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
# The priority is based upon order of creation:
33
# first created -> highest priority.
44

5+
root :to => "home#index"
6+
57
# Sample of regular route:
68
# match 'products/:id' => 'catalog#view'
79
# Keep in mind you can assign values other than :controller and :action

public/index.html

-241
This file was deleted.
+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
require 'spec_helper'
2+
3+
describe HomeController do
4+
5+
end

spec/helpers/home_helper_spec.rb

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
require 'spec_helper'
2+
3+
# Specs in this file have access to a helper object that includes
4+
# the HomeHelper. For example:
5+
#
6+
# describe HomeHelper do
7+
# describe "string concat" do
8+
# it "concats two strings with spaces" do
9+
# helper.concat_strings("this","that").should == "this that"
10+
# end
11+
# end
12+
# end
13+
describe HomeHelper do
14+
pending "add some examples to (or delete) #{__FILE__}"
15+
end

0 commit comments

Comments
 (0)