Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Novidades no Rails 5

Novidades no Rails 5

Novidades no Rails 5

7c1e5b1b100ab8cfacbe14173437c998?s=128

Amanda

July 02, 2016
Tweet

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. SUPORTE PA RA RUBY 2. 2. 2 OU +

  3. INCREMENTA L GC Garbage Collector agora coleta symbols & reduz

    o consumo de memória
  4. DEPRECA TION A ND CLEA NUP Removida muita coisa marcada

    como deprecated em versões anteriores do Rails
  5. A CTIONMA ILER #deliver e #deliver! foram removidos

  6. # OR Book.where('status = 1').or(Book.where('status = 3')) # => SELECT

    * FROM books WHERE (status = 1) OR (status = 3)
  7. # 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"
  8. BELONGS_ TO OBRIGA TÓRIO POR PA DRÃO

  9. UUID COMO PRIMA RY KEY

  10. None
  11. EXECUÇÃO DE COMA NDOS DE RA KE COM RA ILS

  12. RA ILS 5. 0 TA MBÉM VEM COM TURBOLINKS 5

  13. RA ILS A PI $ rails new bluesoft-api --api

  14. 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.
  15. OBRIGA DA!

  16. REFERÊNCIA S http://guides.rubyonrails.org/5_0_release_notes.html http://blog.michelada.io/whats-new-in-rails-5 http://weblog.rubyonrails.org/2016/6/30/Rails-5-0-final/ http://blog.bigbinary.com/categories/Rails-5 https://github.com/rails/actioncable-examples https://visualhunt.com/photo/10973/ https://visualhunt.com/photo/74023/