Skip to content

Instantly share code, notes, and snippets.

View GeekEast's full-sized avatar
🎧
Focusing

James Tan GeekEast

🎧
Focusing
View GitHub Profile
@mdang
mdang / RAILS_CHEATSHEET.md
Last active April 28, 2025 21:24
Ruby on Rails Cheatsheet

Ruby on Rails Cheatsheet

Architecture

Create a new application

Install the Rails gem if you haven't done so before

@iangreenleaf
iangreenleaf / gist:b206d09c587e8fc6399e
Last active May 3, 2025 05:24
Rails naming conventions

Rails naming conventions

General Ruby conventions

Class names are CamelCase.

Methods and variables are snake_case.

Methods with a ? suffix will return a boolean.

@rstacruz
rstacruz / index.md
Last active April 28, 2025 21:24
Rails models cheatsheet

Rails Models

Generating models

$ rails g model User

Associations

belongs_to

has_one