Lock in $30 Savings on PRO—Offer Ends Soon! ⏳

Novidades no Rails 5

Novidades no Rails 5

Novidades no Rails 5

Amanda

July 02, 2016
Tweet

More Decks by Amanda

Other Decks in Programming

Transcript

  1. RAILS 5 @ A M A N D A S

    P O S I T O N O V I D A D E S N O
  2. DEPRECA TION A ND CLEA NUP Removida muita coisa marcada

    como deprecated em versões anteriores do Rails
  3. # OR Book.where('status = 1').or(Book.where('status = 3')) # => SELECT

    * FROM books WHERE (status = 1) OR (status = 3)
  4. # LEFT_ OUTER_ JOINS Author.left_outer_joins(:posts) Author.left_joins :posts, :comments SELECT "authors".*

    FROM "authors" LEFT OUTER JOIN "posts" ON "posts"."author_id" = "authors"."id" LEFT OUTER JOIN "comments" ON "comments"."author_id" = "authors"."id"
  5. A CTIONCA BLE WebSockets com Rails "You must have redis

    installed and running on the default port:6379 (or configure it in config/redis/cable.yml)." Default development server mudou de Webrick para Puma.