Skip to content

Instantly share code, notes, and snippets.

Models, Databases, Relationships in Rails

What is the difference between a primary key and a foreign key? Where would we find a primary key? What would it be called by default? Where would we find a foreign key? What is the naming convention for a foreign key?

Write down one example of:

  • a one-to-one relationship.
  • a one-to-many relationship.
  • a many-to-many relationship.

Actions

  • Adds 'ready_for_release' label to the pull request
  • Merges the PR
  • Adds the Merge and Branch to Tracker story
  • Add release_label to Tracker
  • Sets tracker story state to 'Accepted'

Usage:

  1. Define CRUD.

  2. Why do we use set method_override: true?

  3. Explain the difference between value and name in this line: <input type='text' name='task[title]' value="<%= @task.title %>"/>.

  4. What are params? Where do they come from?

  5. Check out your routes. Why do we need two routes each for creating a new Task and editing an existing Task?

Things For Review / Exploration

This is a guide to keep you busy over intermission. What you choose to do here will be highly dependant on what you need to review, ramp up on, or learn.

What should I do??

You don't HAVE to do any of this. You will not be graded, but most likely there are some things here you SHOULD do. I would suggest you do something over break to keep the rust off. At this point you are almost finished with Turing, and you should be a self-sustainable learner. That means you should be able to judge what you need to do. Here is what I would suggest:

  1. Redoing, or doing something much like the mid-mod is good practice for everyone.

Self Direction Plan - Due Tomorrow

What?

For the final 2 weeks of module 4, we'd like to offer the option to to some extention exploration outside of the cirriculum if you desire.

In class we will be studying the JavaScript library, React.

Past examples of students self-directed study include:

Self Direction Plan

For the final 2 weeks of module 4, we'd like to offer the option to to some extention exploration outside of the cirriculumn in you ddd

@Carmer
Carmer / guidelines-and-expectations.markdown
Last active November 28, 2016 16:06 — forked from anonymous/guidelines-and-expectations.markdown
Things for Turing students to keep in mind while going through the program.

Turing Student Guidelines and Expectations

The learning at Turing extends beyond technical training. Equally as important is developing professional skills and creating an environment that encourages learning. As a precursor to a professional career as a Software Developer, we would like to emulate practices followed in a professional work environment. A professional work environment consists of a community of people. In addition to creating software developers, we want to simulate an industry we want to work in. We want to also concentrate on creating thoughtful, engaging developers, to add to the tech industry. Here are a few things that make a good community member at Turing:

Attendance

If you are unable to attend a day of instruction, let your instructors know as soon as possible. It is your responsibility to stay up-to-date on lessons that you miss. If you need anything or have questions, let your anchor or supporting instructor know. They’ll be happy to help. When on group projects, be sure to l

Group Retro and Feedback

Retro

First, take about 30+ minutes and do a retro about your group experience. What's a retro? Think about our friday whole module retro - positives, negatives, and so-sos and actionable things you can improve to better the situation for next time. Here is a short read that may help define retros if you need a little more context. It may be helpful to revisit your DTR conversation too.

Feedback

"By not giving me feedback, you're preventing me from growing." -Anonymous Student