Skip to content

Instantly share code, notes, and snippets.

@ouranos
Created May 25, 2015 09:13
Show Gist options
  • Save ouranos/5f00bbbf8ea70e5f73c0 to your computer and use it in GitHub Desktop.
Save ouranos/5f00bbbf8ea70e5f73c0 to your computer and use it in GitHub Desktop.
# config/routes.rb
Rails.application.routes.draw do
get 'welcome/index'.
root 'welcome#index'
end
# app/controllers/welcome_controller.rb
class WelcomeController < ApplicationController
def index
render text: "Welcome guest, it's #{Time.now}"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment