To Examples

School Directions

 

  1. Open a command window.
     
  2. Navigate to your folder for rails applications.
     
  3. Create a new rails project named School:
    > rails new School
     
  4. Navigate to the School folder.
     
  5. Create the project using scaffolding:
    > rails generate scaffold Students name:string major:string year:integer gpa:float
     
  6. Build the database table:
    > rake db:migrate
     
  7. Start the Rails server:
    > rails s
     
  8. In a browser navigate to this URL:
    > http://localhost:3000/students