validates :phone, format: { with: /\A\d{3}\/\d{3}-\d{4}\Z/ }Write and test a validation that checks a part number which has the format
(A|B|C)\d\d\d-(D|E|F)\d\d\d\d\d Ans: validates :part_num, format: { with /\A(A|B|C)\d{3}-(D|E|F)\d{5}\Z/ }
DRY CoC CRUD HTTP RESTAns: DRY: Don't Repeat Yourself; CoC: Convention over Configuration; CRUD: The standard database operations Create, Read, Update, Destroy; HTTP: Hypertest Transfer Protocol; REST: Representation State Transfer.
telnet condor.depaul.edu 80 GET /sjost/ HTTP
http://localhost:3000/client_server/server?utf8=%E2%9C%93 ⇓ &name=Alice&gender=F&age=11&commit=Submit+Info+to+Server