Skip to content

Instantly share code, notes, and snippets.

View jcieslar's full-sized avatar

Jakub Cieślar jcieslar

View GitHub Profile
@jcieslar
jcieslar / mailer.rb
Created June 16, 2015 12:00
custom locales only for part of app - I18n.with_locale
def send_email
# I18n.locale => :en
I18n.with_locale(:pl) do
# I18n.locale => :pl
end
# I18n.locale => :en
end
@jcieslar
jcieslar / Gemfile
Last active August 29, 2015 14:23
Angular i18n locale currency pain and how to setup with rails
gem 'rails-assets-angular-i18n', '~> 1.4.1'
@jcieslar
jcieslar / Rails cheatsheet.md
Created September 15, 2015 13:50
Rails cheatsheet
gem install bundler # install bundler for bundle command

rails s # run rails server
rails c # run rails console - access to database tables

bundle # install gems dependencies

rake db:setup # run db:create, db:schema:load, db:seed
rake db:create # create database