Skip to content

Instantly share code, notes, and snippets.

View vita's full-sized avatar

Vít Krchov vita

  • productboard
  • Prague
View GitHub Profile
@vita
vita / gist:5065535
Last active December 14, 2015 09:29 — forked from jkovar/gist:4508830
run 'rm public/index.html'
# RVM
file '.rvmrc', "rvm 1.9.2@#{app_name} --create"
# Setup database
gsub_file 'config/database.yml', /username: (.*)/, 'host: localhost'
gsub_file 'config/database.yml', /password:/, ''
# Gems
# config/locales/cz.rb
{
:'cz' => {
:i18n => { :pluralize => lambda { |n| n == 1 ? :one : (2..4).include?(n) ? :few : :other } },
:photo_count => {
:one => '{{count}} fotka',
:few => '{{count}} fotky',
:other => '{{count}} fotek'
}
}
@vita
vita / minimal_rails_template.rb
Created November 30, 2009 16:16 — forked from karmi/minimal_rails_template.rb
Kraxnet's rails template
# Delete/Move Rails default files
log 'moving', 'Rails default files'
run "mv README doc/README_FOR_RAILS"
run "rm public/index.html"
# Copy database.yml
log "copying", "database.yml"
run "cp config/database.yml config/database.example.yml"
# Create App config
# Rails Template for pages_plugin
# GEMS
gem "vita-clearance",
:lib => 'clearance',
:source => 'http://gems.github.com',
:version => '0.6.9.2'
gem "mislav-will_paginate",
:lib => "will_paginate",
# Rails Template for eshop_plugin
# GEMS
gem "vita-clearance",
:lib => 'clearance',
:source => 'http://gems.github.com',
:version => '0.6.9.2'
gem "mislav-will_paginate",
:lib => "will_paginate",