Skip to content

cbest47/ruby_dec_16

 
 

Repository files navigation

Coding Dojo - Ruby on Rails December 2016

Welcome rubyists

Our course agenda. Keep up to date with it.

“Computer science education cannot make anybody an expert programmer any more than studying brushes and pigment can make somebody an expert painter.”

  • Eric S. Raymond

Setup

  1. Fork this repo to your github account
  2. Clone it locally onto your laptop using source tree
  3. Add this (https://github.com/CodingDojoDallas/ruby_dec_16) repo as a REMOTE to your locally cloned copy.
  4. Profit!
  5. Possibly get cupcakes.

Daily Commits

  1. PULL from THIS repo (class remote) into your local MASTER
  2. PUSH your local MASTER to your remote MASTER
  3. FORK from your local MASTER into a NEW Branch
  4. Name your new Branch something unique (for example the date)
  5. COPY your changed files into YOUR OWN folder in your local repo's branch
  6. Commit the changes.
  7. PUSH your new branch up to your GitHub account
  8. From GitHub, create a pull request off the new branch

NOTE: If you don't get in at least one pull request daily, then ya ain't serious.

Videos

Bank Account OOP - https://youtu.be/p4t1-0Gvl6Y

Ruby TDD - https://youtu.be/YSVnP5p9ly0

Bank Account TDD - https://youtu.be/lNOHQzmf5yk

Blogs/Posts/Messages II - https://youtu.be/ezDWz9IFmi0

Intro to Controllers - https://youtu.be/i2T9H-G3Stg

Resources

http://guides.rubyonrails.org/index.html

http://ruby-doc.org/core-2.2.2/

http://www.rubyinside.com/

https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers

http://api.rubyonrails.org/classes/ActiveRecord/QueryMethods.html

http://api.rubyonrails.org/classes/ActiveModel/Validations/HelperMethods.html

Articles

https://gist.github.com/MilanGrubnic70/11092705

http://mixandgo.com/blog/mastering-ruby-blocks-in-less-than-5-minutes

http://www.spacevatican.org/2008/5/6/creating-multiple-associations-with-the-same-table/

https://launchschool.com/blog/understanding-polymorphic-associations-in-rails

https://robots.thoughtbot.com/whats-the-deal-with-rails-polymorphic-associations

http://culttt.com/2016/01/13/creating-polymorphic-relationships-in-ruby-on-rails/

http://guides.rubyonrails.org/active_record_callbacks.html#available-callbacks

An important note: before_save is called every time an object is saved. So for new and existing objects. (create and update action) before_create only before creation. So only for new objects (create action, but not update)

About

Class repo for Dallas December 2016

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 81.1%
  • HTML 14.8%
  • JavaScript 2.1%
  • CSS 1.8%
  • CoffeeScript 0.2%