Coder Catchup

Episode 076 - Riding The Rails 5 Hype

Informações:

Sinopsis

Release Notes: http://weblog.rubyonrails.org/2016/6/30/Rails-5-0-final Features/Must Know Ruby 2.2.2+ required Sprockets 3 Action Cable: a brand-new framework for handling WebSockets in Rails. It’s a completely integrated solution for managing connections, a channels layer for server-side processing, and a JavaScript layer for client-side interaction. API mode: If you create a new Rails application using rails new backend --api, you’ll get a slimmed down skeleton and configuration that assumes you’ll be working with JSON, not HTML. (outputs with .to_json by default but you can use your own, e.g. AMS, JSONAPI::Resources, etc) No more rake command! Its all Rails. OR! Finally! this is now a thing "Post.where(‘id = 1’).or(Post.where(‘id = 2’)) gives you exactly what you’d think!" New Attributes API by Sean Griffin - kind of like type casting your attributes but with a twist... " It will override the type of existing attributes if needed. This allows control over how values are converted to and fro