title: What is a macro in Rails?
body: <p>I was reading the <a href="http://guides.rubyonrails.org/active_support_core_extensions.html" rel="nofollow noreferrer">Rails docs</a>, and I have encountered the term <code>macros</code>.
  I can't find the definition of the term (in the context of Rails).
  Can someone point me to a place where the term is defined?</p>
  
  <p>I am familiar with the term in a different context as a software for "recording" actions (mouse, keyboard actions in OS, for instance).
  Is there any connection between the different uses of the term?</p>