You are on page 1of 34

The Rails 3.

1 Leap
@nathanbertram

Thursday, October 27, 2011

O.K its not that kind of a leap. But there is lots of improvements & awesome new stuff!

Thursday, October 27, 2011

GIST

Thursday, October 27, 2011

~~ Quick Poll ~~

Thursday, October 27, 2011

When you upgrade to Rails 3.1 its going to feel much the same ... Recognizable

Thursday, October 27, 2011

This talk is about what is new.

So... what is new?

Thursday, October 27, 2011

ZOMG we have an NHL team again!

Thursday, October 27, 2011

jQuery

is now default

Thursday, October 27, 2011

is now a rst-class citizen.

Thursday, October 27, 2011

Thursday, October 27, 2011

Thursday, October 27, 2011

Powerful little language that compiles into JS. TURNS:

INTO THIS:

Thursday, October 27, 2011

TURNS: INTO THIS:

Thursday, October 27, 2011

Turns out you can remove that line from your Gemle.

Thursday, October 27, 2011

Went from - Hey Everyone:

Thursday, October 27, 2011

To everyone ...

Dealt

Thursday, October 27, 2011

Thursday, October 27, 2011

Thursday, October 27, 2011

Asset Pipeline ZOMG what does this mean?


Use tools like sass, coffeescript, compass, less & etc to write css & js in separate organized fashion. Your css & js les (respectively) will be automagically be concatenated and compressed using Sprokets (getsprokets.com).

Thursday, October 27, 2011

Sprokets Sprokets uses manifest les to determine which assets to include and serve.

Thursday, October 27, 2011

Asset Pipeline Assets are optimized out of the box when you deploy. Saving precious KBs and less les for the browser to download - faster load time.

Thursday, October 27, 2011

HTTP Streaming
- Send content to the browser before its nished processing. Been around for ages in php, asp, etc. - Chunked Responses Eg. Page takes 5 seconds to process. Stream the <head> ... </head> part; so the browser can start loading js/css assets.

Thursday, October 27, 2011

HTTP Streaming

Thursday, October 27, 2011

Thursday, October 27, 2011

BCrypt (BRUTE force resistant) With every request to hash - it gets slower and slower ...

Thursday, October 27, 2011

Identity Map
- Ensures that each object gets loaded only once by keeping every loaded object in a map. Looks up objects using the map. - Disabled by default due to a couple recent discoveries. https://github.com/rails/rails/blob/master/activerecord/ lib/active_record/identity_map.rb

Thursday, October 27, 2011

Reversible Migrations

Thursday, October 27, 2011

:bulk => true

Thursday, October 27, 2011

HTTP Basic Auth ... Little Better!

Thursday, October 27, 2011

Mass Assignment with Roles

Thursday, October 27, 2011

Thursday, October 27, 2011

Awesome gist from Ryan Bates of RailsCasts.com!

Changelog Rails 3.1 beta 1: https://gist.github.com/958283

Thursday, October 27, 2011

TIPS: Preparing to Upgrade


1. Upgrade your application to Rails 3.0.x 2. Have decent test coverage and have all tests are green

3. Fix deprecation warnings that show up.


4. Bump your rails version up and x any red tests. 5. (optional) setup asset pipeline

Handy Railscast: http://railscasts.com/episodes/282-upgrading-to-rails-3-1

Thursday, October 27, 2011

Thanks!
Thursday, October 27, 2011

You might also like