Skip to content

Instantly share code, notes, and snippets.

@trevorturk trevorturk/ Secret
Last active Jan 9, 2019

What would you like to do?
Single file Rails 5 app
# gem install rails
# rackup
# open http://localhost:9292/
require 'action_controller/railtie'
class HelloWorld < Rails::Application
routes.append do
root to: 'hello#world'
config.secret_key_base = SecureRandom.hex(30)
config.eager_load = false
config.logger =
class HelloController < ActionController::Base
def world
render plain: 'Hello, World!'
run HelloWorld

This comment has been minimized.

Copy link

commented Jan 23, 2017

Nice! Does it include all the default middlewares?


This comment has been minimized.

Copy link

commented Oct 25, 2017

Very cool, I've been looking for something like this for my Programming Kata called webwords ( - I used your implementation for the Ruby version!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.