Skip to content

Commit

Permalink
Added static page controller
Browse files Browse the repository at this point in the history
  • Loading branch information
safalmj committed Aug 8, 2012
1 parent b3d2feb commit 03d2dbb
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/assets/javascripts/static_pages.js.coffee
@@ -0,0 +1,3 @@
# Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
3 changes: 3 additions & 0 deletions app/assets/stylesheets/static_pages.css.scss
@@ -0,0 +1,3 @@
// Place all the styles related to the StaticPages controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/
7 changes: 7 additions & 0 deletions app/controllers/static_pages_controller.rb
@@ -0,0 +1,7 @@
class StaticPagesController < ApplicationController
def home
end

def help
end
end
2 changes: 2 additions & 0 deletions app/helpers/static_pages_helper.rb
@@ -0,0 +1,2 @@
module StaticPagesHelper
end
2 changes: 2 additions & 0 deletions app/views/static_pages/help.html.erb
@@ -0,0 +1,2 @@
<h1>StaticPages#help</h1>
<p>Find me in app/views/static_pages/help.html.erb</p>
2 changes: 2 additions & 0 deletions app/views/static_pages/home.html.erb
@@ -0,0 +1,2 @@
<h1>StaticPages#home</h1>
<p>Find me in app/views/static_pages/home.html.erb</p>
4 changes: 4 additions & 0 deletions config/routes.rb
@@ -1,4 +1,8 @@
SampleApp::Application.routes.draw do
get "static_pages/home"

get "static_pages/help"

# The priority is based upon order of creation:
# first created -> highest priority.

Expand Down

0 comments on commit 03d2dbb

Please sign in to comment.