Skip to content

Commit

Permalink
Fixed the tweet_button example
Browse files Browse the repository at this point in the history
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
kirtithorat committed Mar 7, 2014
1 parent 6a8ccfc commit 4ada053
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4ada053

Please sign in to comment.