Created
January 15, 2011 02:25
-
-
Save jasonnoble/780629 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| We needed a HTML file that had form | |
| fields to submit a user registration. | |
| Requirements were PHP. | |
| So, to start with, I created a Rails app. | |
| Then generated a scaffold with: | |
| rails generate scaffold Registration | |
| first_name:string middle_name:string | |
| last_name:string address:string city:string | |
| state:string zipcode:string county:string | |
| grade:string children:string schoolname:string | |
| major:string college:string mother_first:string | |
| mother_middle:string mother_last:string | |
| father_first:string father_middle:string | |
| father_last:string parent_address:string | |
| parent_city:string parent_city:string | |
| parent_state:string parent_zip:string | |
| parent_county:string parent_phone:string | |
| emergency_phone1:string | |
| emergency_phone2:string | |
| parent_email:string monthly:string | |
| parent_marital:string source:string | |
| rake db:migrate | |
| http://localhost:3000/registrations/new | |
| File -> Save | |
| #DONE and DONE |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment