Skip to content

Instantly share code, notes, and snippets.

@ybart
ybart / example_root_route.rb
Last active August 29, 2015 14:13
Excerpts for URL Helpers articles
root 'welcome#index'
@ybart
ybart / config-application.rb
Last active August 29, 2015 14:14
Localizing ActionMailer::Preview
class Application < Rails::Application
...
# The easiest way : update the default locale and restart
config.i18n.default_locale = :fr
...
end
#### Contents of the preconfiguration file (for xenial)
### Localization
# Preseeding only locale sets language, country and locale.
d-i debian-installer/locale string fr_FR
# The values can also be preseeded individually for greater flexibility.
#d-i debian-installer/language string en
#d-i debian-installer/country string NL
#d-i debian-installer/locale string en_GB.UTF-8
# Optionally specify additional locales to be generated.
begin
require 'bundler/inline'
rescue LoadError => e
$stderr.puts 'Bundler version 1.10 or later is required. Please update your Bundler'
raise e
end
gemfile(true) do
source 'https://rubygems.org'
# Activate the gem you are reporting the issue against.
# Install Oh My ZSH
$ sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
# Install ruby with RVM and Homebrew
$ xcode-select --install
$ sudo xcodebuild -license
$ gcc --version
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
$ brew doctor
$ \curl -sSL https://get.rvm.io | bash -s stable --ruby