Skip to content
Browse files

update Rails example

  • Loading branch information...
1 parent b7f214e commit 848faed49995fd861731ae05c151e25e0618f94d @rodreegez rodreegez committed Mar 24, 2012
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
```

0 comments on commit 848faed

Please sign in to comment.
Something went wrong with that request. Please try again.