From 2bc4af30c9bc47ff356955b0e5eb2257a7e8e5dc Mon Sep 17 00:00:00 2001 From: Mark Pundsack Date: Fri, 7 Feb 2014 16:56:34 -0800 Subject: [PATCH] Add Hello World message --- app/assets/javascripts/welcome.js.coffee | 3 +++ app/assets/stylesheets/welcome.css.scss | 3 +++ app/controllers/welcome_controller.rb | 2 ++ app/helpers/welcome_helper.rb | 2 ++ app/views/welcome/index.html.erb | 4 ++++ config/routes.rb | 1 + 6 files changed, 15 insertions(+) create mode 100644 app/assets/javascripts/welcome.js.coffee create mode 100644 app/assets/stylesheets/welcome.css.scss create mode 100644 app/controllers/welcome_controller.rb create mode 100644 app/helpers/welcome_helper.rb create mode 100644 app/views/welcome/index.html.erb diff --git a/app/assets/javascripts/welcome.js.coffee b/app/assets/javascripts/welcome.js.coffee new file mode 100644 index 0000000..24f83d1 --- /dev/null +++ b/app/assets/javascripts/welcome.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://coffeescript.org/ diff --git a/app/assets/stylesheets/welcome.css.scss b/app/assets/stylesheets/welcome.css.scss new file mode 100644 index 0000000..77ce11a --- /dev/null +++ b/app/assets/stylesheets/welcome.css.scss @@ -0,0 +1,3 @@ +// Place all the styles related to the welcome controller here. +// They will automatically be included in application.css. +// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/app/controllers/welcome_controller.rb b/app/controllers/welcome_controller.rb new file mode 100644 index 0000000..d8c85ab --- /dev/null +++ b/app/controllers/welcome_controller.rb @@ -0,0 +1,2 @@ +class WelcomeController < ApplicationController +end diff --git a/app/helpers/welcome_helper.rb b/app/helpers/welcome_helper.rb new file mode 100644 index 0000000..eeead45 --- /dev/null +++ b/app/helpers/welcome_helper.rb @@ -0,0 +1,2 @@ +module WelcomeHelper +end diff --git a/app/views/welcome/index.html.erb b/app/views/welcome/index.html.erb new file mode 100644 index 0000000..40f725e --- /dev/null +++ b/app/views/welcome/index.html.erb @@ -0,0 +1,4 @@ +

Hello World

+

+ The time is now: <%= Time.now %> +

diff --git a/config/routes.rb b/config/routes.rb index 79b622b..db90613 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,4 +1,5 @@ RubyRailsSample::Application.routes.draw do + root 'welcome#index' # The priority is based upon order of creation: first created -> highest priority. # See how all your routes lay out with "rake routes".