Middlemanapp share on Facebook and Twitter

Hello I am fairly new to Middleman and I was building my blog and wondering how do I add a share button to each blog post. I tried

        <a onclick="javascript:window.open('http://twitter.com/share?text=<%= current_article.title %> by Jason Browne - &amp;url=<%= url_for([current_article_url, {only_path: false}]) %>', '_blank', 'width=800, height=500, top=200, left=300');void(0);"> 
          <i class="fa fa-twitter-square" aria-hidden="true"></i>
        </a>

but I am getting an error I don’t understand.

undefined local variable or method `current_article_url’ for #<#Class:0x007fbba14a5a88:0x007fbb9c32c198>

Any advice will be greatly appreciated.

current_article_url looks wrong. Try current_article.url.