09 Sep '13, 8pm

@peeja Is this your comment? If so, thank you very much! Just what I was looking for.

It depends: why are you asking for those things? If you’re interested in properties of the business (say, you’re in businesses/show.html.haml), and one of those properties is the name of the business owner, you’d want to ask the business for it’s owner name. The business is responsible for figuring out where to look for that name. But, maybe you’re showing the owner as a Person box on the business’s page. Then your business/show template would `render business.owner`, which will render the partial `people/person`. That partial will have a local `person`, and since `person` is this partial’s friend, so it’s allowed to ask it for its name. If you’re looking for all three of those properties (email address, phone number, and address), you’re probably doing something more like the latter than the former. Here, the Law of Demeter is telling you not to add delegation but to use ...

Full article: http://pivotallabs.com/rails-delegates-are-even-more-usef...

Tweets

@lhochstein. I figured it out. @jashsf was righ...

pivotallabs.com 08 Sep '13, 9pm

Who We Are We’ve been at the forefront of agile development for more than two decades building highly reliable, scalable s...

Rails: Think small

rubyflow.com 09 Sep '13, 2pm

Rails: Think small Posted by ior3k on September 09, 2013 — 0 comments I just wrote an article discussing ways to reduce th...

The $519 Cycling Short: Why Assos Costs So Much

The $519 Cycling Short: Why Assos Costs So Much

triathlon.competitor.com 09 Sep '13, 6pm

The design process behind the new S7 generation of cycling shorts went like this: Maier thought of an upgrade to the short...

Epics now in the Pivotal Tracker iOS app!

pivotallabs.com 06 Sep '13, 3pm

Dan Podsedly manages Pivotal Tracker, Pivotal Labs’ award winning project management and collaboration software. Dan has b...

The Tracker Team is hiring! We need enthusiasti...

pivotallabs.com 29 Aug '13, 12am

Hungry for the opportunity share your ideas in an open environment and be inspired by the creativity of others? The Pivota...

My Experiences with Ruby off Rails via @karlinfox

My Experiences with Ruby off Rails via @karlinfox

spin.atomicobject.com 06 Sep '13, 2pm

I was recently pointed to Ben Singelman’s post on Why Nobody Should Use Rails For Anything, Ever . We seem to never get en...

great post by @pivotallabs on how to create a s...

pivotallabs.com 09 Sep '13, 2am

One of the exciting things in Cloud Foundry is the possibility to connect your app to different services. The interesting ...

A couple of useful extensions to Ruby's Enumera...

rubyflow.com 03 Sep '13, 1pm

A couple of useful extensions to Ruby's Enumerable module Posted by bozhidar on September 03, 2013 — 0 comments I just wro...

Thank You! Now my Strategy to END Reverse Domai...

ricksblog.com 07 Sep '13, 11am

There are MILLIONS, no scratch that TENS of MILLIONS. No scratch that. HUNDREDS of MILLIONS of people worldwide that own a...