Skip to content

Instantly share code, notes, and snippets.

@jnicklas
Created July 21, 2014 20:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jnicklas/f8ca2ae8ffb2038eb985 to your computer and use it in GitHub Desktop.
Save jnicklas/f8ca2ae8ffb2038eb985 to your computer and use it in GitHub Desktop.
Minimal Rails app
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