Skip to content

Instantly share code, notes, and snippets.

@mauriciosilva
Created September 18, 2011 03:20
Show Gist options
  • Save mauriciosilva/1224682 to your computer and use it in GitHub Desktop.
Save mauriciosilva/1224682 to your computer and use it in GitHub Desktop.
gem 'rails', '3.1.0'
gem 'haml'
gem 'haml-rails'
gem 'mongoid', '2.0.0.rc.6'
gem 'bson_ext', '~> 1.2'
gem 'configy'
layout = <<-LAYOUT
!!! 5
%html
%head
%title #{app_name}
<!--[if IE]> <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> <![endif]-->
= csrf_meta_tag
= stylesheet_link_tag :all, :recursive => 'true'
= yield :styles
%body
= yield
= javascript_include_tag :defaults
= javascript_include_tag "http://ajax.microsoft.com/ajax/jquery.templates/beta1/jquery.tmpl.min.js"
= yield :scripts
LAYOUT
remove_file 'public/index.html'
remove_file 'app/views/layouts/application.html.erb'
create_file 'app/views/layouts/application.html.haml', layout
run 'bundle'
run 'rails g mongoid:config'
git :init
git :add => "."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment