Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Fixed the tweet_button example

The following tweet_button example will give Syntax error
<%= tweet_button(via: => "peterc", url: "", :text => "AWESOME.") %> 

The issue is with following
via: => "peterc" 
The hash is not defined correctly. It should be either 
via: "peterc" 
:via => "peterc"
  • Loading branch information...
commit 4ada0531dc4d9fdce86ad13fa9dbdd3db44fd46b 1 parent 6a8ccfc
@kirtithorat kirtithorat authored
Showing with 1 addition and 1 deletion.
  1. +1 −1 
2 
@@ -65,7 +65,7 @@ More information can be found from [Twitter](
So, if you wanted to tweet about Hacker News, attribute it to Peter Cooper, and add some custom text, all from a tweet button with a horizontal counter, you'd do this:
-<%= tweet_button(via: => "peterc", url: "", :text => "AWESOME.") %>
+<%= tweet_button(via: "peterc", url: "", text: "AWESOME.") %>
### Like Button
Please sign in to comment.
Something went wrong with that request. Please try again.