Coder Catchup

Episode 053 - The Top 5ish Must Know Features About Rails 5

Informações:

Sinopsis

Ruby 2.2.2 and up support only. No more rake commands! Everything is available through the rails command, migrations, everything. Happy days. Snappier dev mode: Evented file system! Basically that means it just checks for files that have changed and reloads those, it does not have to traverse all files on each request. Huge speed boost from that. Rails API is being merged into Rails. ActionCable (https://www.youtube.com/watch?v=n0WUjGkDFS0 by David Heinemeier Hansson) ApplicationController.render - Basically made to work with ActionCable, it allows ActionController::Renderer to render partials as strings. where.or: Finally, with ActiveRecord we can now do Object.where(‘something = something’).or(Object.where(‘something = something else’)) Couple other things... belongs_to has a sane required by default option, yup, its pretty rare that you want an optional belongs_to relationship. if you don’t want this behaviour a simple optional: true will fix that turbolinks 3, respects redirects and replaces on redirect,