Triangle.rb Notes - Things To Look Out For In Rails 5

Things To Look Out For In Rails 5

with Brandon Mathis (meetup)

History

Rails 1

Rails 2

Rails 3 (2010)

Rails 4 (2013)

  • turbolinks
  • threadsafe
  • live streaming
  • LOTS of dev tools

Rails 5 (2016)

  • action cable - websockets for rails apps
  • puma
  • apis
  • attributes
  • rails subsumes rake
  • debugger replaced with byebug
    • NOTE check out pry-byebug

APIs

Previously add Rails API to Rails.

Now just use $ rails new app-name --api

Attributes

Easily specify custom datatypes and defaults for model attributes.

class Student < ApplicationRecord
  attribute :money, Money.new
end

Future

  • webpack
  • (probably other stuff too)