patcarrasco / rails-create-action-lab-dumbo-web-111918

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Create Action Lab

Instructions

Many of the spec tests are already passing for this lab, but there are some additional ones –– including our first use of controller tests –– located here:

  • Controller Specs - specs/controllers/students_controller_spec.rb

  • Capybara Specs - specs/features/student_spec.rb:37

When this lab is complete, your application should have the following behavior:

  1. User fills out the form on students/new

  2. When the form is submitted, a new record is created in the database

  3. After the user submits the form, they are redirected to the show page that renders the Student record that they created

Make sure to use a route helper method to redirect to the show page at the end of the create method. You can find the correct syntax for this route by running rake routes in the terminal.

Resources

View Create Action Lab on Learn.co and start learning to code for free.

About

License:Other


Languages

Language:Ruby 81.8%Language:HTML 14.5%Language:CSS 1.9%Language:JavaScript 1.8%