Skip to content

Instantly share code, notes, and snippets.

Joan Hughes jehughes

Block or report user

Report or block jehughes

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jehughes
jehughes / fakeworld_io_Gemfile
Last active Jun 8, 2018
Gemfile for fakeworld.io
View fakeworld_io_Gemfile
As of June 8, 2018:
source 'https://rubygems.org' do
gem 'rails', '5.1.6'
gem 'mysql2', '0.4.4'
gem 'puma', '~> 3.7'
gem 'sass-rails', '~> 5.0'
@jehughes
jehughes / devise-email-with-layout
Created Oct 28, 2015
Devise email: add custom mailer for branded layouts (CSS)
View devise-email-with-layout
# Adding CSS to Devise HTML emails
# Rails 4.1+
# ------------
###
### Preview of initial Devise emails from generator:
###
# In spec/mailers/previews/devise_mailer_preview.rb
@jehughes
jehughes / .rubocop.yml files
Last active Oct 18, 2016
.rubocop.yml files
View .rubocop.yml files
# rubocop config files for small Rails4/Ruby2 project
# blog post: http://joanswork.com/rubocop-rails-getting-started/
# .rubocop.yml
AllCops:
Include:
- Rakefile
- config.ru
Exclude:
@jehughes
jehughes / database.yml.mysql
Last active Aug 29, 2015
mysql database.yml template
View database.yml.mysql
# MySQL. Versions 4.1 and 5.0 are recommended.
#
# Install the MYSQL driver
# gem install mysql2
#
# Ensure the MySQL gem is defined in your Gemfile
# gem 'mysql2'
#
# And be sure to use new-style password hashing:
# http://dev.mysql.com/doc/refman/5.0/en/old-client.html
@jehughes
jehughes / rails-header-with-turbolinks
Last active Dec 22, 2015
rails4 and turbolinks - example layout head with seo related meta tags, google analytics
View rails-header-with-turbolinks
You can’t perform that action at this time.