Models

Heads up!

These are reference docs. Looking for tutorials?

Persistence
save, new_record?, toggle...

Migrations
add_index, rename_table, add_column...

Associations
belongs_to, has_one, has_many...

Validations
validates :acceptance, validates :presence...

Controllers

Redirects
redirect_to hash, record, string, proc...

Important Classes

Request
get?, post?, ip...
CAVEAT: there are apparently more methods which aren't listed here, such as request.domain.

DateTime
beginning_of_day, past?, in_time_zone...
See also: DateHelper.time_ago_in_words

MiniTest

An Overview

RSpec

Core Matchers
expect().to, expect().not_to expect{}.to raise_error, ...

Rails
Request specs, model specs, controller specs...

Git

(Need a git link or two here!)
Reverting, Branching, Cherry-picking...


 

 
blog comments powered by Disqus