I have a form on my front#index page pointing to one of my models:
*<form with="&Model.new">...</form>* This model has a custom validation method: *validate :sanity_checks* If I create a new record at Model/new it works as intended and applies my validation. However if I add a record from the front page form it accepts anything and creates a new record. If I edit this record and try to save, the validation kicks in correctly. I also have a "regular" validation: *validates_numericality_of :debit, :only_integer => true, :allow_nil => true, :message => "can only bet whole numbers (no cents)"* If I use a decimal number from the front page form the validation seems to work: the record creation fails silently. It's like the form tag is letting some validations run while bypassing others. Am I using the <form> tag incorrectly? Thanks, Nathan -- You received this message because you are subscribed to the Google Groups "Hobo Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to hobousers+unsubscr...@googlegroups.com. To post to this group, send email to hobousers@googlegroups.com. Visit this group at https://groups.google.com/group/hobousers. For more options, visit https://groups.google.com/d/optout.