Rails 3.1 sneak peak

  • 920 views
Uploaded on

Sneak peak of Rails 3.1 new features

Sneak peak of Rails 3.1 new features

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
No Downloads

Views

Total Views
920
On Slideshare
0
From Embeds
0
Number of Embeds
1

Actions

Shares
Downloads
11
Comments
0
Likes
1

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. What's new in Rails 3.1 [email_address]
  • 2. Currently RC4, to be released soon Aaron Patterson Core team, in rc4 info Rails 3.1.0.rc4 has been released!
  • 3. In a nutshell
      • Asset Pipeline
      • HTTP streaming
      • JQuery by default
      • Reversible migrations
      • Mountable engines
      • Prepared statements
  • 4. In a nutshell
      • Rack::Cache on by default
      • Turn test-output on Ruby 1.9
      • Force SSL
      • Role-based mass-assignment protection
      • BCrypt-based passwords
      • Custom serializers
    There's always changelog
  • 5. Assets pipeline
      • Powered by Sprockets 2.0
    • Why use Sprockets?
      • Extract reusable code and share it across multiple web sites or applications. 
      • Speed up your site by automatically concatenating JavaScript into a single file for production. 
      • Organize your JavaScript source code into multiple commented files and directories.
      • Use bleeding-edge framework and library code in your application. 
      • Sprockets is compatible with the PDoc JavaScript documentation system and the JavaScript framework of your choice.
  • 6. Assets pipeline
      • Enables proper organization, including use in plugins and engines
  • 7. Assets pipeline Js plugin example plugins/color_picker/assets/images/color_picker/arrow.png plugins/color_picker/assets/images/color_picker/circle.png plugins/color_picker/assets/images/color_picker/hue.png plugins/color_picker/assets/images/color_picker/saturation_and_brightness.png plugins/color_picker/assets/stylesheets/color_picker.css plugins/color_picker/src/color.js plugins/color_picker/src/color_picker.js color_picker.js: //= require &quot;color&quot; //= provide &quot;../assets&quot; When <color_picker> is required in your application, its provide directive will tell Sprockets that all files in the plugins/color_picker/assets/ directory should be copied into the web server's document root.
  • 8. Assets pipeline Compiling to one application.js //= require jquery //= require jquery_ujs //= require_tree . //= require 'independent_file' //= require 'super_lib'
  • 9. Assets pipeline “ CoffeeScript is well done and  more convenient to use than JavaScript ” - Brendan Eich, inventor of JavaScript
  • 10. Assets pipeline CoffeeScript
      • Ruby-like syntax
      • Doesn't deprecate JavaScript code
      • OOP made easy (extends, etc)
      • Arrays with slicing and generators
      • Strings with interpolation and multi-line
  • 11. Assets pipeline CoffeeScript
  • 12. Assets pipeline CoffeeScript http://asciicasts.com/episodes/267-coffeescript-basics
  • 13. Assets pipeline SASS
      • Nesting
      • Variables
      • Mixins
  • 14. Reversible migrations
    •  
  • 15. Basic Auth
  • 16.