Guys, Ruby on Rails 3.1 has just been released! Feel really good after a long long wait (3 Months since RailsConf).
Highlights in Rails 3.1:
Table of Contents
For a much more attractive and easy to read list of changes, please check out the awesome Rails 3.1.0 Release Notes on the Rails Guides site. For a less attractive list of changes, please continue to read!
Here are some highlights of the major changes in Rails 3.1.0:
ActionController::Metal::Streaming
for more information. Middleware have been refactored to support this feature.attr_accessible
and friends now accepts: as option to specify a roleActiveModel::SecurePassword
to encapsulate dead-simple password usage with BCrypt encryption and salting.ActiveRecord::Base#create
and simple finders will use a prepared statement and cache for more performant inserts and selects.default_scope
can take any object that responds to call
.self.up
method, you should define an instance method up
.change
. Database changes made in this method will automatically know how to reverse themselves. For more information, see the documentation forActiveRecord::Migration
andActiveRecord::Migration::CommandRecorder
.add_index
is added by default for belongs_to
or references
columns.self.format = :xml
in the class.weeks_ago
and prev_week
to Date/DateTime/Time.multi_json
gem which also vendors a JSON engine called OkJson. The yaml backend has been removed in favor of OkJson as a default engine for 1.8.x, while the built-in 1.9.x json implementation will be used by default.x_sendfile_header
is present.r
for rails runner.config.force_ssl
configuration which loads Rack::SSL middleware and force all requests to be under HTTPS protocolFor a more detailed list of changes, please see each of the CHANGELOG files checked in to the Rails repository on github.
For an even more detailed list of changes, please see the commit list between Rails 3.0.10 and 3.1.0.
Source: http://weblog.rubyonrails.org/2011/8/31/rails-3-1-0-has-been-released
The recruitment picture is changing rapidly, and AI in recruitment is at the forefront of…
Multimodal AI is a groundbreaking technology that combines multiple modalities, such as text, images, and…
Artificial intelligence (AI in the energy) sector is revolutionizing how we produce, distribute, and consume…
Nowadays, monetization application is the end game of mobile app development. Whether you're an indie…
Nowadays, many mobile apps fail to make an impact. From poor research to bad user…
Apple's VisionOS, the operating system powering the Vision Pro headset, is paving the way for…