- screenshots of scores will be posted in comments
- screenshots of completed sections will be posted in comments
This exercise is intended to help you assess your progress with the concepts and techniques we've covered during the week.
For these questions, write a short snippet of code that meets
the requirement. In cases where the question mentions a "given"
data value, use the variable given
to refer to it (instead of re-writing
the information).
Totally unique identifier for a table A primary key automatically generates and increments from previous record (never reused)
A primary key of a table that is used in another table to relate the two tables
id
foreign_table_id
Group Member Names:
Pat - Doing meet and greet this weekend and moving to Denver next weekend. Good at remote work. Pat will be here from 9-4. Pending weekend hours. Will check in again on Friday re weekend. More inclined to work in the morning.
Yoseph - Wants to attend to meetups. Usually occur at 5-6. Will give us 24 hour notice. Arrives at 7, no time restriction to leave.
Take contents from all files and puts them together in one file
Takes abstractions of languages (ie SASS and Coffeescript) and preprocess them down into native languages (CSS & Javascript)
gem 'rails_12factor'
to your Gemfile. This will add error logging and the ability for your app to serve static assets.bundle
RAILS_ENV=production rake db:create db:migrate db:seed
rake secret
and copy the outputexport SECRET_KEY_BASE=output-of-rake-secret
rake assets:precompile
. This will create a folder public/assets
that contains all of your assets.RAILS_ENV=production rails s
and you should see your app.Remember to clobber your assets (rake assets:clobber
) and re-precompile (rake assets:precompile
) if you make changes.
rails new <project_name> -d postgresql --skip-turbolinks --skip-spring -T
-d postgresql
sets up the project to use PostgreSQL--skip-turbolinks
& --skip-spring
creates a project that does not use turbolinks or spring-T
skips the creation of the test directory and use of Test::Unit