Created
December 5, 2009 08:58
-
-
Save Narnach/249625 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
# Created by RailsBoost.com | |
# Generated at Sat Dec 05 00:52:39 -0800 2009 | |
# Generator by Hampton Catlin | |
# Modified by Wes Oldenbeuving | |
############## gem commands ################# | |
# environment.rb | |
gem 'haml' | |
gem 'mysql' | |
gem 'will_paginate' | |
gem 'RedCloth' | |
gem 'paperclip' | |
gem 'friendly_id' | |
# Testing gems | |
str = <<-TEST | |
config.gem 'rspec' | |
config.gem 'shoulda' | |
config.gem 'rspec-rails' | |
config.gem 'factory_girl' | |
TEST | |
File.open('config/environments/test.rb','a') {|f| f.puts ""; f.puts str} | |
# Development gems | |
str = <<-DEV | |
config.gem 'rails-footnotes' | |
config.gem 'httparty' | |
DEV | |
File.open('config/environments/development.rb','a') {|f| f.puts ""; f.puts str} | |
############## commands ################# | |
run "touch tmp/.gitignore log/.gitignore vendor/.gitignore" | |
run %{find . -type d -empty | grep -v "vendor" | grep -v ".git" | grep -v "tmp" | xargs -I xxx touch xxx/.gitignore} | |
file '.gitignore', <<-END | |
.DS_Store | |
log/*.log | |
tmp/**/* | |
config/database.yml | |
db/*.sqlite3 | |
END | |
run "cp config/database.yml config/database.yml.template" | |
run "rm README" | |
run "rm public/index.html" | |
run "rm public/favicon.ico" | |
run "rm public/robots.txt" | |
run "mkdir -p app/views/layout" | |
File.open('app/views/layout/application.html.haml','w') {|f| | |
f.puts <<-HAML | |
!!! XML utf-8 | |
!!! strict | |
%html{:xmlns=>'http://www.w3.org/1999/xhtml', :"xml:lang" => I18n.locale, :lang => I18n.locale} | |
%head | |
%meta{:"http-equiv" => "X-UA-Compatible", :content => "chrome=1"} | |
%meta{:'http-equiv' => 'Content-Type', :content => 'text/html;charset=utf-8'}/ | |
%meta{:name => 'description', :content => I18n.t('txt.layout.description')}/ | |
= stylesheet_link_tag 'style.css', :media => 'screen, projection' | |
%title= t('txt.site.name') | |
%body | |
#container | |
#header= t('txt.site.name') | |
#nav | |
%ul | |
%li | |
%a{:href=>root_path}= I18n.t('txt.nav.home') | |
- if flash.keys.size > 0 | |
#flash | |
- flash.each do |type, message| | |
%div{:class => h(type.to_s)}= h(message) | |
#body | |
= yield | |
#footer | |
= t('txt.layout.footer') | |
HAML | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment