Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@npj
Created May 4, 2012 16:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save npj/2596197 to your computer and use it in GitHub Desktop.
Save npj/2596197 to your computer and use it in GitHub Desktop.
class PostObserver
def after_save(post)
Slug[post.slug] = post.id.to_s
return true
end
end
@alvinkatojr
Copy link

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

Thanks.

@alvinkatojr
Copy link

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