MODELS & HELPERS
2.0

— Active Record Validation Errors Cheatsheet

POSTED ABOUT 1 YEAR AGO

Each ActiveRecord backed model in Rails has an errors object which errors are added to if the model fails validation. This cheatsheet covers methods available, default errors messages and view error helpers.

Html * HTML

Pdf * PDF (200.7 KB)

CHEATSHEETS & HELPERS
2.0

— Form Helpers Cheatsheet

POSTED ABOUT 1 YEAR AGO

Create forms, check boxes, radio buttons, select lists and more using Rails' built-in form helpers.

Html * HTML

Pdf * PDF (189.5 KB)

CHEATSHEETS & HELPERS
Rails 2.0

— Rewritten Form Helpers Cheatsheet

POSTED ABOUT 1 YEAR AGO

I have completely rewritten the form helpers cheatsheet to make it much more useful.

HELPERS
Rails 1.2.0

— Quickly debugging form helpers

POSTED ABOUT 1 YEAR AGO

Sometimes you want to quickly see the output of helper methods, and constantly clicking refresh in your browser then viewing the page source can be tiresome. Instead, use the Rails console to check helpers are doing what you want them to.