Slide 1

Slide 1 text

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

Slide 2

Slide 2 text

SUPORTE PA RA RUBY 2. 2. 2 OU +

Slide 3

Slide 3 text

INCREMENTA L GC Garbage Collector agora coleta symbols & reduz o consumo de memória

Slide 4

Slide 4 text

DEPRECA TION A ND CLEA NUP Removida muita coisa marcada como deprecated em versões anteriores do Rails

Slide 5

Slide 5 text

A CTIONMA ILER #deliver e #deliver! foram removidos

Slide 6

Slide 6 text

# OR Book.where('status = 1').or(Book.where('status = 3')) # => SELECT * FROM books WHERE (status = 1) OR (status = 3)

Slide 7

Slide 7 text

# 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"

Slide 8

Slide 8 text

BELONGS_ TO OBRIGA TÓRIO POR PA DRÃO

Slide 9

Slide 9 text

UUID COMO PRIMA RY KEY

Slide 10

Slide 10 text

No content

Slide 11

Slide 11 text

EXECUÇÃO DE COMA NDOS DE RA KE COM RA ILS

Slide 12

Slide 12 text

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

Slide 13

Slide 13 text

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

Slide 14

Slide 14 text

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.

Slide 15

Slide 15 text

OBRIGA DA!

Slide 16

Slide 16 text

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/