Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed the tweet_button example

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

The issue is with following
via: => "peterc" 
The hash is not defined correctly. It should be either 
via: "peterc" 
or 
:via => "peterc"
  • Loading branch information...
commit 4ada0531dc4d9fdce86ad13fa9dbdd3db44fd46b 1 parent 6a8ccfc
@kirtithorat kirtithorat authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  README.md
View
2  README.md
@@ -65,7 +65,7 @@ More information can be found from [Twitter](https://twitter.com/about/resources
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:
```erb
-<%= tweet_button(via: => "peterc", url: "http://news.ycombinator.com", :text => "AWESOME.") %>
+<%= tweet_button(via: "peterc", url: "http://news.ycombinator.com", text: "AWESOME.") %>
```
### Like Button
Please sign in to comment.
Something went wrong with that request. Please try again.