Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 27 lines (19 sloc) 0.431 kB
647190c @carlhoerberg replaces the sintra app with a rails app
authored
1 require "bundler/setup"
2 require "rails"
3 require "action_controller/railtie"
e1536d2 @carlhoerberg init
authored
4
647190c @carlhoerberg replaces the sintra app with a rails app
authored
5 $stdout.sync = true
6
7 class MyApp < Rails::Application
8 routes.append do
9 match "/" => "hello#index"
e1536d2 @carlhoerberg init
authored
10 end
647190c @carlhoerberg replaces the sintra app with a rails app
authored
11
12 config.logger = Logger.new STDOUT
13 config.secret_token = "asdf8sadfas8dlj2342b3bv23bvn23o3u"
14 config.threadsafe!
e1536d2 @carlhoerberg init
authored
15 end
16
647190c @carlhoerberg replaces the sintra app with a rails app
authored
17 class HelloController < ActionController::Base
18 def index
19 @time = Time.now
20 end
21 end
accdf7d @carlhoerberg touch
authored
22
647190c @carlhoerberg replaces the sintra app with a rails app
authored
23 MyApp.initialize!
bf5a6a0 @carlhoerberg touch
authored
24
647190c @carlhoerberg replaces the sintra app with a rails app
authored
25 run MyApp
64224c1 @carlhoerberg touch
authored
26
Something went wrong with that request. Please try again.