We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
users/new
coach/new
app/models/coaches.rb
class Coach < ApplicationRecord validates :first_name, presence: true validates :first_name, length: { minimum: 2 } validates :first_name, length: { minimum: 30 } validates :last_name, presence: true validates :last_name, length: { minimum: 2 } validates :last_name, length: { minimum: 30 } validates :email, presence: true validates :days, presence: true validates :operating_system, presence: true end
http://guides.rubyonrails.org/active_record_validations.html http://stackoverflow.com/questions/16725010/rails-simple-form-validation
The text was updated successfully, but these errors were encountered:
jendiamond
No branches or pull requests
Pull Request #81
The
users/new
and thecoach/new
sign up forms don't reject wrong submissions.Add validations
app/models/coaches.rb
http://guides.rubyonrails.org/active_record_validations.html
http://stackoverflow.com/questions/16725010/rails-simple-form-validation
The text was updated successfully, but these errors were encountered: