README.md in pousse-0.0.2 vs README.md in pousse-0.0.3
- old
+ new
@@ -26,35 +26,37 @@
```
Add this line to your layout :
```
-<div data-pousse="<%= Pousse::layout([:everybody]) %>">
+<script><%= Pousse::js([:everybody], [server], [secret]) %></script>
```
-Include the javascript :
-```
-//require pousse
-
-```
-
Create a new mailer in app/mailer/pousse.rb
```
class AlertMailer < Pousse::Mailer
def send_alert
mail(
to: 'everybody',
- body: 'alert("Hello World !")'
+ body: 'alert("Hello World !");'
)
end
end
```
+### Your node server on heroku :
+```
+git clone ...
+heroku ...
+```
+
### TODO :
-Should add some logging when redis is not available.
+- Should add some logging when redis is not available.
+- Should add some spec for the configuration.
+- Should try again every 30 second or something when the poussette server is offline.
## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)