April 9, 2015
ActiveRecord: relations, validations, queries
ActiveRecord is provides the Model layer of M-V-C, and is a powerful tool.
Last week we got our first introduction to ActiveRecord when we saw the generated Models from rails g scaffold
. This week we're going to explore the functionality that Rails provides out of the box in terms of persisting and retrieving our site resources. We're also going to get more comfortable working with our application's data layer interactively.
Same codewars challenge as last week (RSVP to see it), since we're getting into some ruby this week.
Be sure to complete the following Codewars challenge before class!
(If your RailsSchool profile includes your Codewars username, you'll get
a nifty star if you complete the challenge.)
http://www.codewars.com/kata/convert-a-boolean-to-a-string/train/ruby
2:30pm Pacific - 4:30pm Pacific on April 9, 2015
at
Coshx Labs
5 students were there