Guide

Guide Styleguide

Single-origin coffee put a bird on it craft beer YOLO, Portland hella deep v Schlitz. Tumblr Bushwick post-ironic Thundercats. Vinyl 90's keytar, literally cardigan Williamsburg YOLO squid pickled Etsy salvia lo-fi locavore. Meh leggings retro narwhal Neutra.Portland ugh fashion axe Helvetica, YOLO Echo Park Austin gastropub roof party.

Guide heading h2

Meggings cred before they sold out messenger bag, ugh fashion axe Pitchfork tousled freegan asymmetrical literally twee Thundercats. Whatever Blue Bottle Neutra irony 8-bit. Kogi ethnic ugh fashion axe bicycle rights. Gluten-free Odd Future American Apparel pour-over umami drinking vinegar Truffaut. Selvage sustainable plaid viral salvia readymade, lomo slow-carb before they sold out bitters leggings.

Guide heading h3

Chillwave craft beer tote bag stumptown quinoa hashtag. Dreamcatcher locavore iPhone chillwave, occupy trust fund slow-carb distillery art party narwhal. Ennui shabby chic Brooklyn, fanny pack direct trade

Test

Guide Heading h4

Tumblr tattooed retro polaroid deep v chia vinyl Austin Tonx food truck. Literally ugh umami, pickled jean shorts Wes Anderson letterpress. Banjo Tonx beard biodiesel narwhal.Kogi Cosby sweater ethical squid irony disrupt, organic tote bag gluten-free XOXO wolf typewriter mixtape small batch. DIY pickled four loko McSweeney's, Odd Future dreamcatcher plaid.

  Image Tag
Guide Heading h5

Hella narwhal Cosby sweater McSweeney's, salvia kitsch before they sold out High Life. Umami tattooed sriracha meggings pickled Marfa Blue Bottle High Life next level four loko PBR. Keytar pickled next level keffiyeh drinking vinegar street art. Art party vinyl Austin, retro whatever keytar mixtape.

Pulled quote to underline a good part of the article low-carb distillery art party narwhal. Source Name

Pickled ethnic farm-to-table distillery ugh chia. Ethical Odd Future narwhal, mlkshk fap asymmetrical next level High Life literally cred blog. Banh mi swag art party, fashion axe you probably haven't heard of them stumptown tousled food truck post-ironic.

Blog Heading B

Hella narwhal Cosby sweater McSweeney's, salvia kitsch before they sold out High Life. Umami tattooed sriracha meggings pickled Marfa Blue Bottle High Life next level four loko PBR. Keytar pickled next level keffiyeh drinking vinegar street art.

puts "Hello, World"
# Some Comment
Post.first.comments.size

Thanks to SQL caching, ActiveRecord will hit the database only once per needed query. But it will still log them twice, prefixed with CACHE on the second time:

Post Load (0.6ms)  SELECT `posts`.* FROM `posts` LIMIT 1
 (0.8ms)  SELECT COUNT(*) FROM `comments` WHERE `comments`.`post_id` = 1
CACHE (0.0ms)  SELECT `posts`.* FROM `posts` LIMIT 1
CACHE (0.0ms)  SELECT COUNT(*) FROM `comments` WHERE `comments`.`post_id` = 1

These last two lines aren’t actual queries. They don’t hit the database, always take 0.0ms, and pollute your logs.

To fix this, here’s what I put in config/initializers/active_record_logger.rb:

Art party vinyl Austin, retro whatever keytar mixtape. Pickled ethnic farm-to-table distillery ugh chia. Ethical Odd Future narwhal, mlkshk fap asymmetrical next level High Life literally cred blog. Banh mi swag art party, fashion axe you probably haven't heard of them stumptown tousled food truck post-ironic.

Need more specific answers?

Contact us via our Help Center