Skip to content

Instantly share code, notes, and snippets.

@jasonnoble
Created January 15, 2011 02:25
Show Gist options
  • Select an option

  • Save jasonnoble/780629 to your computer and use it in GitHub Desktop.

Select an option

Save jasonnoble/780629 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment