21 Apr '12, 6pm

seriously, try() isn't part of core ruby bc of naming problems?

lets you call methods on an object without having to worry about the possibility of that object being nil and thus raising an exception. I know I sometimes forget about it, and I’ve looked at enough code from other developers to know that I’m not the only one. So today I’d like to give you a brief introduction to the method (and hopefully ingrain it a little deeper into my own brain). Let’s look at some very simple code from a Rails view.

Full article: http://everydayrails.com/2011/04/28/rails-try-method.html

Tweets

Selling on Craigslist and eBay sucks; try @ShopSpotApp instead

Selling on Craigslist and eBay sucks; try @Shop...

sgentrepreneurs.com 18 Apr '12, 5am

Selling on Craigslist and eBay sucks; try ShopSpot instead April 18, 2012 by Terence LEE Sure, many people use Craigslist ...

#starbucks Does Pudding Frappuccino sound good? You'll have to travel to Japan to try it.

#starbucks Does Pudding Frappuccino sound good?...

starbucksgossip.typepad.com 22 Apr '12, 8pm

Does Pudding Frappuccino sound good? You'll have to travel to Japan to try it. The pudding rests in the bottom of your Fra...

Athletics: Core Training

runnersweb.com 20 Apr '12, 8pm

Often when I go to the gym, I see body builders crunching away on their abs muscles. I try to act all professional by doin...

Try an In-Depth Free Stress & Well-Being Survey

Try an In-Depth Free Stress & Well-Being Survey

care2.com 22 Apr '12, 5pm

As part of HeartMath’s Nourishing the Heart column for April’s National Stress Awareness Month, we want to offer you a fre...

Republicans In Tennessee Try To Criminalize Miscarriages | Care2 Causes

Republicans In Tennessee Try To Criminalize Mis...

care2.com 22 Apr '12, 3pm

The abortion wars aren’t ending anytime soon in Tennessee where last week the state House of Representatives approved a bi...

Must-try streetside-style Penang Char Kway Teow in Singapore

Must-try streetside-style Penang Char Kway Teow...

soshiok.com 20 Apr '12, 4pm

Gurney Drive @ Terminal 3 Departure/Check-in Hall Level 3, Changi Airport Terminal 3 Who says you can't find good Penang C...

How to Dominate Your Core: Advanced Exercises to Keep You Healthy #running

How to Dominate Your Core: Advanced Exercises t...

runaddicts.net 22 Apr '12, 1am

Interested in writing for RunAddicts.net? Get started now! To stay healthy, runners need a solid foundation of strength in...

Would you rather try a guest chef from Madrid o...

asiatatlerdining.com 24 Apr '12, 6am

Apart from the upcoming View 62 by Paco Roncero, the Spanish dining scene in Hong Kong is not exactly kicking. Which is wh...

Five Wacky Ways Automakers Try To Sell You New Green Cars

Five Wacky Ways Automakers Try To Sell You New ...

greencarreports.com 12 Apr '12, 1pm

By Nikki Gordon-Bloomfield Nikki Gordon-Bloomfield Contributing Writer BIO Nikki Gordon-Bloomfield is a self-confessed pet...

@jonjcannon @CriticalCouple @gourmetraveller @theskinnybib I must try @Aulis_RD. That & @bubbledogsuk similar to kappo!

@jonjcannon @CriticalCouple @gourmetraveller @t...

chubbyhubby.net 23 Apr '12, 7pm

A dish I was a tad squeamish about was Mori-san’s shirako soup. I’ve never been a huge fan of shirako, which to the uninit...

You should try automated static code analysis

rubyflow.com 23 Apr '12, 12pm

You should try automated static code analysis Posted by markoa on April 23, 2012 — 0 comments I followed John Carmack's ad...

Level Up: 3 Tricks to Try When Your Content Marketing Plateaus

Level Up: 3 Tricks to Try When Your Content Mar...

searchenginejournal.com 11 Apr '12, 4pm

If you’ve been playing the SEO game for a year or more, odds are you’ve got the basics down by now. By “basics,” I mean st...

sudo su - - Yaml, Psych and Ruby 1.9.2-p180 - H...

pivotallabs.com 21 Apr '12, 4pm

As mentioned in yesterday's standup blog, my pair and I encountered some problems with YAML parsing over the last few days...

Good talks #dsl #hypermedia My two recent @pghr...

rubyweekly.com 19 Apr '12, 12pm

Welcome to issue 89 of Ruby Weekly! RailsConf 2012 is taking place next week in Austin, Texas, so I hope you have a great ...