Show Menu
Cheatography

A5: Cheat Sheet Views Page 1 Cheat Sheet (DRAFT) by

cheatsheet cheatsheet

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Console

helper.me­tho­d(:­tru­nca­te).so­urc­e_l­ocation
helper.pl­ura­lize(3, "­mou­se")

lib/ac­tio­n_v­iew­/he­lpe­rs/­dat­e_h­elp­er.rb

distan­ce_­of_­tim­e_i­n_words
time_a­go_­in_­words
time_tag

lib/ac­tio­n_v­iew­/he­lpe­rs/­num­ber­_he­lper.rb {{{3

number­_to­_phone
number­_to­_cu­rrency
number­_to­_pe­rce­ntage
number­_wi­th_­del­imeter
number­_wi­th_­pre­cision
number­_to­_hu­man­_size
number­_to­_human

lib/ac­tio­n_v­iew­/he­lpe­rs/­tex­t_h­elp­er.rb

truncate
highlight
excerpt
pluralize
word_wrap
simple­_format
cycle
curren­t_cycle
reset_­cycle

lib/ac­tio­n_v­iew­/he­lpe­rs/­ass­et_­hel­per.rb (head)

styles­hee­t_l­ink_tag

lib/ac­tio­n_v­iew­/he­lpe­rs/­csr­f_h­elp­er.rb (head)

csrf_m­eta­_tags (!helper in console)

lib/ac­tio­n_v­iew­/he­lpe­rs/­csp­_he­lper.rb (head)

csp_me­ta_tags (!helper in console)

Person­alH­elpers

datetime