Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fixed the tweet_button example #13

Merged
merged 1 commit into from

2 participants

@kirtithorat

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"

@kirtithorat kirtithorat 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"
4ada053
@iffyuva iffyuva merged commit 02a5c3e into iffyuva:master
@iffyuva
Owner

@kirtithorat thanks for fixing readme.

@kirtithorat

@iffyuva Glad to help. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 7, 2014
  1. @kirtithorat

    Fixed the tweet_button example

    kirtithorat authored
    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"
This page is out of date. Refresh to see the latest.
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
Something went wrong with that request. Please try again.