<!doctype html>
<html>
<head>
  <meta name="google-site-verification" content="bHeMePUL_gILh9s3NFMaeYXRhd2-_POiFpUcFt1y4Pk" />
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <meta name="viewport" content="width=550, maximum-scale=1.0" />
  <meta name="keywords" content="mike mayo, mikemayo" />
  <meta name="description" content="Mike Mayo; Ruby/Rails developer @ Kalkomey Enterprises, LLC, Dallas, TX." />
  
  <title>
     Mike Mayo
  </title>
  <link rel="stylesheet" href="/css/reset.css" type="text/css" />
  
  <link rel="stylesheet" href="/css/screen.css" type="text/css" />
  <link rel="stylesheet" href="/css/syntax.css" type="text/css" />
  <link rel="stylesheet" media="only screen and (max-device-width: 480px)" href="/css/iphone.css" type="text/css" />
  <link rel="stylesheet" media="only screen and (max-device-width: 1024px)" href="/css/ipad.css" type="text/css" />
  <link href="http://coderwall.com/stylesheets/jquery.coderwall.css" media="all" rel="stylesheet" type="text/css" />
  <link rel="alternate" type="application/atom+xml" href="http://feeds.feedburner.com/mikemayo" title="RSS Feed for mikemayo.org"/>
  <link href="/images/favicon.ico" rel="shortcut icon" type="image/x-icon" />
  <link href="/images/icon.jpg" rel="apple-touch-icon" />
  <script type="text/javascript">

    var _gaq = _gaq || [];
    _gaq.push(['_setAccount', 'UA-20085238-1']);
    _gaq.push(['_trackPageview']);

    (function() {
      var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
      ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
      var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
    })();

  </script>
</head>
<body>
  <div id="wrapper">
    <div id="inner">
      <div id="container">
        <div id="header">
          <h1>
            
             Mike Mayo
            
          </h1>
          <ul>
            <li>
              <a href="/projects">Projects</a>
            </li>
            <li>
              <a href="/contact">Contact</a>
            </li>
            <li>
              <a href="/resume.html">Resume</a>
            </li>
          </ul>
          <hr class="right"/>
          <div class="twitter-button">
            <a href="https://twitter.com/mike_mayo" class="twitter-follow-button" data-show-count="false" data-show-screen-name="false" data-width="100px" data-align="right">Follow @mike_mayo</a>
            <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
          </div>
        </div> <!-- end #header -->
        <h2>Software Development Manager @ <a href="https://www.kalkomey.com" alt="Kalkomey Enterprises, LLC" title="Kalkomey Enterprises, LLC"><img width="227" height="56" alt="Kalkomey Enterprises, LLC" title="Kalkomey Enterprises, LLC" src="/images/kalkomey_logo_white.png" /></a> in Dallas, TX</h2>
        
  <div class="post">
    <h3><a href="/2020/thoughts-on-activerecord-callbacks">Thoughts on ActiveRecord Callbacks</a></h3>
    <div class="subtitle">
      <p class="date">15 Apr 2020
        
      </p>
      <a href="/2020/thoughts-on-activerecord-callbacks#disqus_thread" class="comments" data-disqus-identifier="/2020/thoughts-on-activerecord-callbacks"></a>
      <div style="clear: both"></div>
    </div>
    <div style="clear: both"></div>
    <p>Guidelines I use for determining if and how I want to use everyone's favorite before/after hooks in Rails</p>
  </div>

  <div class="post">
    <h3><a href="/2012/deploying-jekyll-sites-to-heroku-with-rack-jekyll">Deploying Jekyll sites to Heroku with Rack-Jekyll</a></h3>
    <div class="subtitle">
      <p class="date">08 Feb 2012
        
      </p>
      <a href="/2012/deploying-jekyll-sites-to-heroku-with-rack-jekyll#disqus_thread" class="comments" data-disqus-identifier="/2012/deploying-jekyll-sites-to-heroku-with-rack-jekyll"></a>
      <div style="clear: both"></div>
    </div>
    <div style="clear: both"></div>
    <p>Heroku is a phenomenal service for deploying small apps since they have a great free plan.  Rack-Jekyll is a gem that makes deploying a Jekyll site to Heroku easy, but there are a couple gotchas with making the current version work.</p>
  </div>

  <div class="post">
    <h3><a href="/2012/how-i-learned-to-stop-worrying-and-love-rest">How I learned to stop worrying and love REST</a></h3>
    <div class="subtitle">
      <p class="date">04 Feb 2012
        
      </p>
      <a href="/2012/how-i-learned-to-stop-worrying-and-love-rest#disqus_thread" class="comments" data-disqus-identifier="/2012/how-i-learned-to-stop-worrying-and-love-rest"></a>
      <div style="clear: both"></div>
    </div>
    <div style="clear: both"></div>
    <p>Though it might be one of the most abused terms in web development today, learning and using REST correctly can make life much easier for you.</p>
  </div>

  <div class="post">
    <h3><a href="/2012/rendering-a-collection-of-partials-with-content_for">Rendering a collection of partials with layouts and content_for</a></h3>
    <div class="subtitle">
      <p class="date">02 Feb 2012
        
      </p>
      <a href="/2012/rendering-a-collection-of-partials-with-content_for#disqus_thread" class="comments" data-disqus-identifier="/2012/rendering-a-collection-of-partials-with-content_for"></a>
      <div style="clear: both"></div>
    </div>
    <div style="clear: both"></div>
    <p>Partials in Rails are a powerful tool to create DRY-er code, but, once you go beyond the basic use-cases, you can quickly find yourself frustrated. Here's how I managed to solve one problem I ran into.</p>
  </div>

  <div class="post">
    <h3><a href="/2011/using-decorators-to-improve-inherited-resources">Using Decorators to improve your Inherited Resources experience</a></h3>
    <div class="subtitle">
      <p class="date">22 Dec 2011
        
      </p>
      <a href="/2011/using-decorators-to-improve-inherited-resources#disqus_thread" class="comments" data-disqus-identifier="/2011/using-decorators-to-improve-inherited-resources"></a>
      <div style="clear: both"></div>
    </div>
    <div style="clear: both"></div>
    <p>Inherited resources is a wonderful, and powerful gem and with a few tweaks we made the base functionality much more generally useful.</p>
  </div>


<!-- Pagination links -->
<div class="pagination">
  
    <span class="previous">Previous</span>
  
  <div class='page-container'>
    <span class="page_number ">Page: 1 of 2</span>
  </div>
  
    <a href="/page2" class="next ">Next</a>
  
</div>
<div style="clear: both"></div>

<script type="text/javascript">
    /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
    var disqus_shortname = 'mikemayoblog'; // required: replace example with your forum shortname

    /* * * DON'T EDIT BELOW THIS LINE * * */
    (function () {
        var s = document.createElement('script'); s.async = true;
        s.type = 'text/javascript';
        s.src = 'http://' + disqus_shortname + '.disqus.com/count.js';
        (document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
    }());
</script>
      </div> <!-- end #container -->

      <div id="ads">
        <!-- <div class="ad" id="promotejs">
          <a href='https://developer.mozilla.org/en/JavaScript' title='Learn JS'>
            <img src='http://static.jsconf.us/promotejsv.gif' height='280' width='160' alt='JS Function .arguments'/>
          </a>
        </div> -->
        <!-- You also need to place a container where you'd like the Coderwall badges to render. -->
        <section class="coderwall" data-coderwall-username="gotmayonase" data-coderwall-orientation="vertical"></section>
      </div> <!-- end #ads -->
      
      <div id="footer">
        <p>
          Blog design by <a href="http://jeffkreeftmeijer.com/">Jeff Kreeftmeijer</a>
        </p>
      </div> <!-- end #footer -->
      
    </div> <!-- end #inner -->
  </div> <!-- end #wrapper -->
  <a href="http://github.com/gotmayonase"><img style="position: absolute; top: 0; left: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_left_darkblue_121621.png" alt="Fork me on GitHub"></a>
  <script src="/js/jquery.js" type="text/javascript"></script>
  <script src="http://coderwall.com/javascripts/jquery.coderwall.js"></script>
  <script type="text/javascript">
    $(function(){
      $('#font-changer').click(function(){
        $('#content, h1, h2, h3, h4').css('font-family', 'Comic Sans MS');
      })
    })
  </script>
</body>
</html>
