Created
March 15, 2012 20:38
-
-
Save spastorino/2046740 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 'action_controller/railtie' | |
| module Myapp | |
| class Application < Rails::Application | |
| config.secret_token = 'd38ad04f101b78570a76ecd1d4664e2b' | |
| routes.append do | |
| get '/' => 'myapp/hello#world' | |
| end | |
| end | |
| class HelloController < ActionController::Base | |
| def world | |
| render :text => 'Hello World!' | |
| end | |
| end | |
| end | |
| Myapp::Application.initialize! | |
| Rack::Handler::WEBrick.run Myapp::Application, :Port => 3000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment