Ruby on Rails - August 2015

Resources for the TIY-Durham Rails course.

Week 9 - Overview

Students should be comfortable with the following at the end of this week:

Monday - Mailers

Challenge: Javascript (in Tabula Railsa)

Lecture Notes

Evening Reading

Assignment

Tuesday - File Storage and S3

Challenge: Double Loop Challenge

Code for config/application.rb:

config.paperclip_defaults = {
  :storage => :s3,
  :url =>':s3_domain_url',
  :path => '/:class/:attachment/:id_partition/:style/:filename',
  :s3_credentials => {
    :bucket => ENV['S3_BUCKET_NAME'],
    :access_key_id => ENV['AWS_ACCESS_KEY_ID'],
    :secret_access_key => ENV['AWS_SECRET_ACCESS_KEY']
  }
}

Evening Reading

Assignment

Wednesday - d3.js

Code Repository for the Day

Exercise 1: Graph deaths.csv on an HTML page. Use CSS as you see fit, but don’t use any graphing libraries which you may have learned.

Exercise 2: Start from the part2 branch. Graph points on an x/y plane. Open old_discoveries.csv and use its “year” column as X and its “important_discoveries” column as Y.

Exercise 3: Add a dropdown to the page which will let you change the Y value of each year to a different column of data.csv. Start from the part3 branch.

Evening Reading

Assignment

Begin Ruby Koans.

Thursday - Development Environments, Non-Rails Frameworks

Assignment

Continue work on Ruby Koans. Then practice any of the concepts from class that you think will be helpful during your final projects.

Friday

Pitch Day!

Eventual Reading/Listening