Ruby on Rails with_scope and returning

This week in my current project I've come across two ruby constructs that were new to me.

with_scope and returning.

Found a blog where they are both nicely explained:

Rija Ménagé

Read more posts by this author.

Subscribe to Pomme::TAB

Get the latest posts delivered right to your inbox.

or subscribe via RSS with Feedly!
comments powered by Disqus