Forum: Ruby on Rails Validator not quite working

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
981dc6a487197fb5a91bb038d0631354?d=identicon&s=25 Patrick L. (greenguy109)
on 2008-12-20 00:26
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_cef...

SignupsController
http://www.pastie.org/343627

Index View
http://www.pastie.org/343631

Customer model

class Customer < ActiveRecord::Base
  validates_presence_of :first_name, :last_name, :email
end
This topic is locked and can not be replied to.