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