Created
July 21, 2014 20:22
-
-
Save jnicklas/f8ca2ae8ffb2038eb985 to your computer and use it in GitHub Desktop.
Minimal Rails app
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'bundler/setup' | |
require "action_controller/railtie" | |
Bundler.require(:default, Rails.env) | |
module Blurgh | |
class Application < Rails::Application | |
config.secret_key_base = "xyz" | |
end | |
end | |
Blurgh::Application.initialize! | |
class HelloController < ActionController::Base | |
def index | |
render text: "Hello World" | |
end | |
end | |
Blurgh::Application.routes.draw do | |
root to: "hello#index" | |
end | |
run Blurgh::Application |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment