Created
April 22, 2016 15:33
-
-
Save patrickwhardy/b16f94d614b4392ff162ae7f8b224457 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
When and why would you rebase? | |
to squash commits | |
What are the steps to do a basic rebase via the command line? | |
git rebase | |
Our cart in Little Shop is not stored in the database. How does its state persist across requests? | |
sessions | |
Name two objects used in Rails that can be used to track state of the user across requests. | |
sessions, flashes | |
Draw the MVC model and the request response cycle through a rails app. | |
get ‘/tasks’, TasksController.index => redirect_to :index, render app/views/tasks/index.html.erb | |
Give an example of something you'd use a Rails helper for. | |
tasks_path | |
How can we clean up duplicated code in the views? | |
partials | |
What type of variable is automatically available in a partial? | |
any instance var you pass from the controller | |
If you want to use a local variable in a partial, what syntax is used? | |
<%= render: partial, locals{amigos: @amigos} %> | |
Describe the function and duties of the asset pipeline. | |
concatenate, minify and preprocess JS/CSS | |
Give an example of an unacceptable use of a callback in Rails. | |
after_action, or anything that modifies stuff outside of that controller’s objects |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
cookies also store state in an application.
Try to draw the MVC model this weekend.
Try to give an example of what you'd use a rails view helper for?