|
MODELS & HELPERS
2.0
|
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
PDF
(200.7 KB)
|
|
CHEATSHEETS & HELPERS
2.0
|
POSTED ABOUT 1 YEAR AGO
Create forms, check boxes, radio buttons, select lists and more using Rails' built-in form helpers.
|
HTML
PDF
(189.5 KB)
|
|
CHEATSHEETS & HELPERS
Rails 2.0
|
POSTED ABOUT 1 YEAR AGO
I have completely rewritten the form helpers cheatsheet to make it much more useful.
|
|
|
HELPERS
Rails 1.2.0
|
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.
|
|