Monday, June 28, 2010

Alastrina - a gem to push model changes to twitter

http://github.com/medined/alastrina - the gem

http://github.com/medined/alastrina_demo - a demo application

http://twitter.com/Alastrina_gem - the result

I was doodling in code this weekend and the result is a small gem that hooks into the after_save callback to send model changes to a Twitter account.

Make sure you install the Twitter gem. Then in the demo app, update the config/alastrina.yml file with your Twitter credentials. Open a console and do:

a = Place.new
a.name = "GGG"
a.save

And, presto, the model changes should be posted to your Twitter feed.

Post a Comment