BACKTRACE

(condense)

Back to Posts List

GET

Rails nil, null empty or blank object

From the rails Ruby Object extenstion, The Object#blank? is now covering nil, blank and empty responses:


elad = nil
elad.blank? # true

and even empty containers

elad = []
elad.blank? # true

note: Remember that this is a Rails extension to Ruby’s Object, so it will not work on IRB, but will on console.

POST

blog comments powered by Disqus

I Don't have cookies.

ELAD ENV

Variable Value
LINKEDIN
TWITTER
FACEBOOK
GITHUB
WWR
IRC
{ 'irc.freenode.net' => [ '#rubyonrails', '#railsbridge', '#ruby', '#mootools' ]}
SKYPE
eladmeidar

You're seeing this error because I think it is funny.