# Validator not quite working

**URL:** <https://www.ruby-forum.com/t/validator-not-quite-working/156072>\
**Category:** Rails\
**Created:** [December 20, 2008, 12:26am UTC](https://www.ruby-forum.com/t/validator-not-quite-working/156072 "2008-12-20T00:26:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lynchnco](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/c77e96/32.png) [@lynchnco](https://www.ruby-forum.com/u/lynchnco)\
**Post date:** [December 20, 2008, 12:26am UTC](https://www.ruby-forum.com/t/validator-not-quite-working/156072/1 "2008-12-20T00:26:44Z")

</div>

Hi guys,  
I’m trying to get the form validator to work - and it almost does. What  
happens, I believe, is that it throws the error properly, but it never  
makes it back to the page to post the error. Instead, it kind of blows  
up.

I used the same basic code the scaffold uses, so I’m not sure why it’s  
not working. If you guys wouldn’t mind… controller = Signups, model =  
Customer

Cheers. And thanks in advance!

The error message:  
[http://farm4.static.flickr.com/3259/3120802163\_cefc0d789f\_o.jpg](http://farm4.static.flickr.com/3259/3120802163_cefc0d789f_o.jpg)

SignupsController  
[http://www.pastie.org/343627](http://www.pastie.org/343627)

Index View  
[http://www.pastie.org/343631](http://www.pastie.org/343631)

Customer model

class Customer \< ActiveRecord::Base  
validates\_presence\_of :first\_name, :last\_name, :email  
end
