Skip to content

Instantly share code, notes, and snippets.

View arthurariza's full-sized avatar
🏠
Working from home

Arthur Ariza arthurariza

🏠
Working from home
View GitHub Profile
@arthurariza
arthurariza / exceptional_ruby_book_quiz.rb
Last active June 6, 2025 03:38 — forked from elgalu/exceptional_ruby_book_quiz.rb
Exceptional Ruby: Master the Art of Handling Failure in Ruby by Avdi Grimm
# Great book! Here are my quiz notes:
# What is the diff bt raise and fail?
#=> no diff
# Are raise//fail ruby keywords or methods?
#=> Kernel#raise (are methods)
# Global exception variable
# => $! or $ERROR_INFO.inspect
@arthurariza
arthurariza / rails http status codes
Created July 6, 2022 06:49 — forked from mlanett/rails http status codes
HTTP status code symbols for Rails
HTTP status code symbols for Rails
Thanks to Cody Fauser for this list of HTTP responce codes and their Ruby on Rails symbol mappings.
Status Code Symbol
1xx Informational
100 :continue
101 :switching_protocols
102 :processing
@arthurariza
arthurariza / rails_setup.md
Created April 10, 2022 19:52 — forked from ryanflach/rails_setup.md
Common setup for a new Rails project
  1. rails new <project_name> -d postgresql --skip-turbolinks --skip-spring -T
  • -d postgresql sets up the project to use PostgreSQL
  • --skip-turbolinks & --skip-spring creates a project that does not use turbolinks or spring
  • -T skips the creation of the test directory and use of Test::Unit
  1. In the Gemfile:
  • Available to all environments:
    • gem 'figaro' - store environment variables securely across your app (docs)
    • Uncomment gem 'bcrypt', '~> 3.1.7' if you will be hosting your own user accounts with passwords (docs)
  • Inside of group :test:
    • gem 'rspec-rails' - user rspec in place of minitest (docs)

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example