Skip to content

Commit d098c9a

Browse files
committed
routes and js. heroku ready
1 parent 9b34e71 commit d098c9a

File tree

12 files changed

+64
-243
lines changed

12 files changed

+64
-243
lines changed

Gemfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ gem 'rails', '3.2.8'
55
# Bundle edge Rails instead:
66
# gem 'rails', :git => 'git://github.com/rails/rails.git'
77

8-
gem 'sqlite3'
8+
#gem 'sqlite3'
9+
gem 'pg'
910

1011
gem 'thin'
1112
gem 'execjs'

Gemfile.lock

+14
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ GEM
3737
coffee-script-source
3838
execjs
3939
coffee-script-source (1.3.3)
40+
daemons (1.1.9)
4041
erubis (2.7.0)
42+
eventmachine (0.12.10)
4143
execjs (1.4.0)
4244
multi_json (~> 1.0)
4345
hike (1.2.1)
@@ -47,6 +49,7 @@ GEM
4749
railties (>= 3.1.0, < 5.0)
4850
thor (~> 0.14)
4951
json (1.7.5)
52+
libv8 (3.3.10.4)
5053
mail (2.4.4)
5154
i18n (>= 0.4.0)
5255
mime-types (~> 1.16)
@@ -88,7 +91,14 @@ GEM
8891
hike (~> 1.2)
8992
rack (~> 1.0)
9093
tilt (~> 1.1, != 1.3.0)
94+
sqlite3 (1.3.6)
9195
sqlite3 (1.3.6-x86-mingw32)
96+
therubyracer (0.10.2)
97+
libv8 (~> 3.3.10)
98+
thin (1.4.1)
99+
daemons (>= 1.0.9)
100+
eventmachine (>= 0.12.6)
101+
rack (>= 1.0.0)
92102
thor (0.16.0)
93103
tilt (1.3.3)
94104
treetop (1.4.10)
@@ -100,12 +110,16 @@ GEM
100110
multi_json (~> 1.3)
101111

102112
PLATFORMS
113+
ruby
103114
x86-mingw32
104115

105116
DEPENDENCIES
106117
coffee-rails (~> 3.2.1)
118+
execjs
107119
jquery-rails
108120
rails (= 3.2.8)
109121
sass-rails (~> 3.2.3)
110122
sqlite3
123+
therubyracer
124+
thin
111125
uglifier (>= 1.0.3)

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

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
class HomeController < ApplicationController
2+
def index
3+
end
4+
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.erb

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<h1>The Payday Hound</h1>
2+
<p>Visit <%= link_to('The Payday Hound', "http://www.thepaydayhound.com/") %>, for industry leading reviews and analysis on payday loans. secured cards and pre-paid cards.</p>
3+
4+
<p>The page is no longer active.</p>

config/routes.rb

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
Resources::Application.routes.draw do
2+
get "home/index"
3+
24
# The priority is based upon order of creation:
35
# first created -> highest priority.
46

57
# Sample of regular route:
68
# match 'products/:id' => 'catalog#view'
79
# Keep in mind you can assign values other than :controller and :action
810

9-
11+
match 'home' => 'home#index'
1012
match 'quick-fast-loans' => redirect("http://www.thepaydayhound.com/quick-fast-loans/")
1113
match 'jupiter-funding-group' => redirect("http://www.thepaydayhound.com/jupiter-funding-group/")
1214
match 'great-plains-lending' => redirect("http://www.thepaydayhound.com/great-plains-lending/")

db/schema.rb

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# encoding: UTF-8
2+
# This file is auto-generated from the current state of the database. Instead
3+
# of editing this file, please use the migrations feature of Active Record to
4+
# incrementally modify your database, and then regenerate this schema definition.
5+
#
6+
# Note that this schema.rb definition is the authoritative source for your
7+
# database schema. If you need to create the application database on another
8+
# system, you should be using db:schema:load, not running all the migrations
9+
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
10+
# you'll amass, the slower it'll run and the greater likelihood for issues).
11+
#
12+
# It's strongly recommended to check this file into your version control system.
13+
14+
ActiveRecord::Schema.define(:version => 0) do
15+
16+
end

public/index.html

-241
This file was deleted.
+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
require 'test_helper'
2+
3+
class HomeControllerTest < ActionController::TestCase
4+
test "should get index" do
5+
get :index
6+
assert_response :success
7+
end
8+
9+
end

test/unit/helpers/home_helper_test.rb

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
require 'test_helper'
2+
3+
class HomeHelperTest < ActionView::TestCase
4+
end

0 commit comments

Comments
 (0)