Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

Daya Sharma's Profile

GitHub User: daya

Comments by Daya Sharma

Avatar

BTW it will be nice to mention that better_errors works only with Rails >= 3.x

Avatar

Hi Ryan,

Not sure how to make the client side validation work in a form that uses mixed model fields i.e. user & account model

rails
\- form_for @user, :url => signup_path, :validate => true do |f|
   = f.label :email
   = f.text_field :email, :size => 30, :maxlength => 320, :class => 'textInput'
   = f.label "Account Name"
   = text_field_tag 'account[domain]', nil, :size => 20, :maxlength => 40, :class => 'textInput', "data-validate"=>true

Any ideas ?