Skip to content

Instantly share code, notes, and snippets.

@jaemar
Created May 9, 2013 09:41
Show Gist options
  • Save jaemar/5546584 to your computer and use it in GitHub Desktop.
Save jaemar/5546584 to your computer and use it in GitHub Desktop.

Proudcloud Playbook - Rails

Rails Fundamentals

Strings, Hashes, Arrays
Iterators
Scaffold
MVC (Model, View, Controller)
HTTP with REST and Routes
Associations
Controller Filters
Model Callbacks

Frameworks

Sinatra
Spree
Active Merchant

Best Practices

- DRY
- KISS
- Model
    * Voyeuristic Models
    * Fat Models
    * Spaghetti SQL
    * Duplicate Code Duplication
    * Serializers
    * Use Non-Database-Backed
    * Virtual Attributes
    * Manage Attribute Access

- Controller
    * Thin Controller
    * Homemade Keys
    * Bloated Sessions
    * Monolithic Controllers
    * Rat’s Nest Resources
    * Evil Twin Controllers

- View
    * PHPitis
    * Markup Mayhem

Patterns

Single-Table Inheritance
Presenter Pattern

Resources

Rails AntiPattern
Agile Web Development with Rails
Ruby on Rails Guides (guides.rubyonrails.org)
Ruby on Rails Tutorials (ruby.railstutorial.org)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment