diff --git a/app/assets/javascripts/static_pages.js.coffee b/app/assets/javascripts/static_pages.js.coffee new file mode 100644 index 0000000..24f83d1 --- /dev/null +++ b/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://coffeescript.org/ diff --git a/app/assets/stylesheets/static_pages.css.scss b/app/assets/stylesheets/static_pages.css.scss new file mode 100644 index 0000000..d55836c --- /dev/null +++ b/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/ diff --git a/app/controllers/static_pages_controller.rb b/app/controllers/static_pages_controller.rb new file mode 100644 index 0000000..c76b925 --- /dev/null +++ b/app/controllers/static_pages_controller.rb @@ -0,0 +1,7 @@ +class StaticPagesController < ApplicationController + def home + end + + def help + end +end diff --git a/app/helpers/static_pages_helper.rb b/app/helpers/static_pages_helper.rb new file mode 100644 index 0000000..2d63e79 --- /dev/null +++ b/app/helpers/static_pages_helper.rb @@ -0,0 +1,2 @@ +module StaticPagesHelper +end diff --git a/app/views/static_pages/help.html.erb b/app/views/static_pages/help.html.erb new file mode 100644 index 0000000..61896f5 --- /dev/null +++ b/app/views/static_pages/help.html.erb @@ -0,0 +1,2 @@ +
Find me in app/views/static_pages/help.html.erb
diff --git a/app/views/static_pages/home.html.erb b/app/views/static_pages/home.html.erb new file mode 100644 index 0000000..af94c7f --- /dev/null +++ b/app/views/static_pages/home.html.erb @@ -0,0 +1,2 @@ +Find me in app/views/static_pages/home.html.erb
diff --git a/config/routes.rb b/config/routes.rb index d2facc2..f3d176d 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,4 +1,6 @@ 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. # See how all your routes lay out with "rake routes".