Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
class PostObserver
def after_save(post)
Slug[post.slug] =
return true

Could you clarify line 3? It looks like a variable assignment, method call assignment and don't know what else rolled up in one.


Ah never mind. I've gotten it. Its a hash mapping for redis. Almost lost me there.

Your reds tutorial is excellent!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment