{"id":16210827,"url":"https://github.com/ale1/validations","last_synced_at":"2025-10-29T11:39:13.910Z","repository":{"id":10504447,"uuid":"12689711","full_name":"Ale1/validations","owner":"Ale1","description":null,"archived":false,"fork":false,"pushed_at":"2013-09-09T00:02:22.000Z","size":112,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-05T09:12:24.852Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Ale1.png","metadata":{"files":{"readme":"README.markdown","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-09-09T00:01:12.000Z","updated_at":"2013-12-07T20:30:02.000Z","dependencies_parsed_at":"2022-09-22T19:42:20.892Z","dependency_job_id":null,"html_url":"https://github.com/Ale1/validations","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ale1%2Fvalidations","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ale1%2Fvalidations/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ale1%2Fvalidations/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ale1%2Fvalidations/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ale1","download_url":"https://codeload.github.com/Ale1/validations/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247731087,"owners_count":20986596,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-10T10:44:30.880Z","updated_at":"2025-10-29T11:39:08.856Z","avatar_url":"https://github.com/Ale1.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Overview\nIn order to protect the integrity of your data, you will often need to prevent\nusers from creating records with information that doesn't meet your constraints.\nA good practice is to inform the user why you did not save the data, and allow\nthem to correct their errors.\n\nStart with this\n[skeleton](http://s3.amazonaws.com/dbc_socrates/challenges/ar-propagate-validations.zip)\nand follow the instructions below.\n\n### Core\nUse ActiveRecord and Sinatra to allow anyone to create an event, so long as it\npasses validation rules.\n\n#### Objectives\nAdd validations to the Event model and show appropriate messages to the user\nwhen the validations fail.\n\n1. Prevent Events from being saved when:\n  a. The events date is empty, in the past, or is not valid.\n  b. The events title is already taken or empty.\n  c. The event organizers name is empty.\n  d. The event organizers email address is invalid.\n\n\n### You Will Know You Are Done When:\n\n1. Invalid Events are not created when the form is posted.\n2. The user is informed for each failing validation.\n2. The form remains populated with the users input after posting.\n3. Bonus points if errors are presented near the invalid form field.\n\n\n### Stretch OPTIONAL\nAn even better practice is to guide the users input to follow the format your\nprogram expects and/or make your program more flexible regarding the data it\naccepts from the user.\n\nComputers should serve people. Not the other way around.\n\n#### Objectives\n\n1. Modify the UI so a user is coerced into entering a valid date. Hint: Consider\n   using a Datepicker.\n2. Modify the controller or model to be more flexible with the format of dates it\n   accepts while still saving reasonable dates to the database. Hint: look into\n   the rubygem Chronic.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fale1%2Fvalidations","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fale1%2Fvalidations","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fale1%2Fvalidations/lists"}