Skip to content

Instantly share code, notes, and snippets.

@mkwiatkowski
Created September 17, 2011 14:29
Show Gist options
  • Save mkwiatkowski/1223984 to your computer and use it in GitHub Desktop.
Save mkwiatkowski/1223984 to your computer and use it in GitHub Desktop.
Rails hello world application
source 'http://rubygems.org'
gem 'rails', '3.1.0'
gem 'sqlite3'
gem 'json'
group :assets do
gem 'sass-rails', " ~> 3.1.0"
gem 'coffee-rails', "~> 3.1.0"
gem 'uglifier'
end
gem 'jquery-rails'
gem 'therubyracer'
gem 'mongrel'
Helloworldrails::Application.routes.draw do
root :to => 'welcome#index'
end
class WelcomeController < ApplicationController
def index
render :text => "<h1>Hello World</h1>"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment