---
title: "Discussion on \"Comprehensive guide to the blank? method in Rails\" | Hashnode"
description: "Discussion on \"Comprehensive guide to the blank? method in Rails\". TL;DR: The blank? method returns true if the object is nil, an empty value (string, array or hash), a whitespace-only string or false.\n\n\nDefinition\nThe blank? method is a Rails extension to Ruby's Object class. It is used to determine if an object is..."
url: "https://hashnode.com/posts/comprehensive-guide-to-the-blank-method-in-rails/64b214081cdfe682f2aa4389"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Comprehensive guide to the blank? method in Rails](https://blog.alexandrecalaca.com/comprehensive-guide-to-the-blank-method-in-rails?utm_source=hashnode&utm_medium=feed)

TL;DR: The blank? method returns true if the object is nil, an empty value (string, array or hash), a whitespace-only string or false. Definition The blank? method is a Rails extension to Ruby's Object class. It is used to determine if an object is...

Jul 15, 2023 · 7 min read · blog.alexandrecalaca.com  
Read the article

-   [#ruby](https://hashnode.com/tag/ruby)
-   [#ruby-on-rails](https://hashnode.com/tag/ruby-on-rails)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)

## Written by

[Alexandre Calaça](https://hashnode.com/@alexandrecalaca)

@alexandrecalaca

  
[View profile](https://hashnode.com/@alexandrecalaca)

I'm a passionate software developer.

## Responses 1

Markdown supported · ⌘↵ to post

[Alexandre Calaça](https://hashnode.com/@alexandrecalaca)

[Jul 16, 2023](https://hashnode.com/posts/comprehensive-guide-to-the-blank-method-in-rails/64b214081cdfe682f2aa4389/comment/64b33b430470cd817f0df49e)

All my other articles can be seen here: [blog.alexandrecalaca.com/archive.](https://blog.alexandrecalaca.com/archive.)
