small medium large xlarge

20 Dec 2008, 00:10
Patrick Leahy (6 posts)

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:


Index View

Customer model

class Customer < ActiveRecord::Base validates_presence_of :first_name, :last_name, :email end

You must be logged in to comment