# Validates\_presence\_of problem

**URL:** <https://www.ruby-forum.com/t/validates-presence-of-problem/131490>\
**Category:** Rails\
**Created:** [March 10, 2008, 5:16pm UTC](https://www.ruby-forum.com/t/validates-presence-of-problem/131490 "2008-03-10T17:16:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lisa127](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/6a8cbe/32.png) [@lisa127](https://www.ruby-forum.com/u/lisa127)\
**Post date:** [March 10, 2008, 5:16pm UTC](https://www.ruby-forum.com/t/validates-presence-of-problem/131490/1 "2008-03-10T17:16:37Z")

</div>

Hi!  
I’m new with ruby on rails.

I have a problem with validates\_presence\_of: it work too much!  
It gives me error when the form is blank and when it is not blank too.

I simply put in my model this line:  
validates\_presence\_of :title  
(I am using the book of Dave T. and David Hansson, “Agile Web  
Development with Rails”… chapter 6)

Do you know what the error can be?

Thanks!

---

<div class="post-metadata">

**Author:** ![lisa127](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/6a8cbe/32.png) [@lisa127](https://www.ruby-forum.com/u/lisa127)\
**Post date:** [March 10, 2008, 5:19pm UTC](https://www.ruby-forum.com/t/validates-presence-of-problem/131490/2 "2008-03-10T17:19:48Z")

</div>

Ehm… OK I’m really tired today…!

The problem was that in my db there isn’t a column called title…  
HAhaha…  
OMG…!

Well, bye to everyone!  
Maybe this topic could be useful for someone else… 😉
