Tips - nagraju/r3t GitHub Wiki

Fully URI Escape
good = URI.escape("abc&efg?hijk", Regexp.new("[^#{URI::PATTERN::UNRESERVED}]"))

Disable time stamps for assets
#application.rb
ENV["RAILS_ASSET_ID] = "" # disable timestamps at end of asset files

gvim: Inserting Ruby script tags in ERB files
CTRL + s = will insert <%= %>
CTRL + s - will insert <% -%>

Strings

"name".humanize           # => "Name"
"author_id".humanize      # => "Author"
"comments_count".humanize # => "Comments count"
"comments_count".titleize # => "Comments Count"
"UserName".humanize       # => "Username"
"UserName".titleize       # => "User Name"
"alice in wonderland".titleize # => "Alice In Wonderland"
"fermat's enigma".titleize     # => "Fermat's Enigma"
⚠️ **GitHub.com Fallback** ⚠️