Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

update Rails example

  • Loading branch information...
commit 848faed49995fd861731ae05c151e25e0618f94d 1 parent b7f214e
@rodreegez rodreegez authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 readme.md
View
6 readme.md
@@ -38,11 +38,13 @@ url: 'http://your-mint-source.com/endpoint'
username: 'http-auth-username'
password: 'http-auth-password'
```
+
Then, in your controller, you have the `spoon` helper method available:
+
```ruby
def index
- @users = User.all
- spoon("This is my message", "This is my submessage", :color => '#000')
+ active_user_count = User.active.count
+ spoon("There are #{active_user_count} active users", "yay!", :color => '#000')
end
```
Please sign in to comment.
Something went wrong with that request. Please try again.