Git Product home page Git Product logo

rails-dynamic-request-lab-chicago-web-062419's Introduction

Rails Dynamic Request Lab

Objectives

  • Draw a route with a dynamic variable

  • Use a routes variable in params within the logic of an action

  • Assign an instance variable in a controller action

  • Use a controller instance variable to generate a dynamic ERB template.

  • Build a classical show action/view

Instructions

There are three RSpec/Capybara specs in this lesson; you can find them in spec/features/student_spec.rb. Make sure they pass without breaking the other tests. To complete this section, all specs should pass.

In this lab, you will work through the full MVC pattern by building a student management app for The Flatiron School. At a high level, you will integrate the following scenario in your application:

  1. The user is able to go to /students/2 to receive information on the student with an id of 2

  2. The application should render the values from the student record in the database

Keys to remember

  • Make sure that you use a route variable for the show request path

  • If you google around and discover generators/scaffolds, don't use them for this lab

Resources

View Rails Dynamic Request Lab on Learn.co and start learning to code for free.

rails-dynamic-request-lab-chicago-web-062419's People

Contributors

maxwellbenton avatar jordanhudgens avatar annjohn avatar danielseehausen avatar pletcher avatar franknowinski avatar jmburges avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.