Skip to content

Commit

Permalink
changed route and controller
Browse files Browse the repository at this point in the history
  • Loading branch information
David committed Nov 21, 2016
1 parent d5964fb commit 4eab2ad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hello_app/app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@ class ApplicationController < ActionController::Base
# Prevent CSRF attacks by raising an exception.
# For APIs, you may want to use :null_session instead.
protect_from_forgery with: :exception

def hello
render html: "ahoy there"
end
end
1 change: 1 addition & 0 deletions hello_app/config/routes.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Rails.application.routes.draw do
root 'application#hello'
# The priority is based upon order of creation: first created -> highest priority.
# See how all your routes lay out with "rake routes".

Expand Down

0 comments on commit 4eab2ad

Please sign in to comment.