08.31
11

Web framework Ruby on Rails 3.1

by admin ·

The latest version of the Rails web framework has been written primarily performance improvements on the flags.

With version 3.1, the Rails developers the latest release of the popular web framework have been released. At the last conference Rails Rails creator David Heinemeier Hansson Meier for the development of the slogan “Almost by default” was issued, which the new Rails version should now be followed. One part is already contributing to the support of Ruby 1.9, which was already completed with Rails 3.0. The developers recommend the use of Ruby 1.9.2, Rails 3.1 offers even though works with Ruby 1.8.7.

A fundamental change in the architecture, which should contribute to further acceleration, for example, the so-called asset pipeline, which allows the compression of CSS style sheets and javascript files.

In addition to their processing to be structured. Developers can write style sheets in the languages ​​of HAML and SASS, which are converted by the Rails framework in the final CSS. Equally impossible to write client code on scarce species in coffee script that Rails is then translated into JavaScript.

Rails 3.1 will be faster through HTTP streaming, where the web server delivers at an early stage of request processing stylesheets and JavaScript. This feature requires Ruby 1.9.2 and the support provided by the Web server. It works for example with a combination of nginx web server and the Ruby middleware Unicorn.

Database stores results Rails 3.1 in the so-called Identity Map between, not so necessary for each request a new database query. This feature, developers must still activate specially. By default, Rails uses 3.1 on the javascript library Jquery. Detailed information about the new version can be found in the Release Notes .

Tags: , , ,

Leave a Reply