GithubHelp home page GithubHelp logo

markdenardo / course-app-rails-lecture Goto Github PK

View Code? Open in Web Editor NEW

This project forked from reireynoso/course-app-rails-lecture

0.0 1.0 0.0 153 KB

Ruby 75.82% JavaScript 8.60% CSS 2.33% HTML 13.26%

course-app-rails-lecture's Introduction

README

Module 2 Rails Review

Models

Student -< Enrollment >- Course

Student has many enrollments, student has many courses through enrollments Course has many enrollments, course has many students through enrollments Enrollment belongs to a student and a course

Pre-Setup (This step has already been done)

  • rails g model Student name age:integer --no-test-framework

  • rails g model Course name teacher_name --no-test-framework

  • rails g controller students index new create show edit update destroy

  • rails g controller courses index

Setup

  • rails g model Enrollment student_id:integer course_id:integer --no-test-framework
  • rails g controller enrollments index new create show destroy
  • rails db:migrate
  • rails db:seed

Deliverables

  1. Display all students in the database
  2. Add new students in the index
  3. Have a show page for each student
  4. In the show page, the courses associated with the student are displayed.
  5. In the show page, we have the ability to update or delete the specific student.
  6. Ability to register for a new course using form_for and collection_select by creating a new enrollment.
  7. Ability to drop course by deleting enrollment.

course-app-rails-lecture's People

Contributors

reireynoso avatar

Watchers

James Cloos 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.