---
title: "Rails 5 Blogs"
description: "BigBinary blog posts in the Rails 5 category."
canonical_url: "https://www.bigbinary.com/blog/categories/rails-5"
markdown_url: "https://www.bigbinary.com/blog/categories/rails-5.md"
---

# Rails 5 Blogs

BigBinary blog posts in the Rails 5 category.

## Posts

### Rails 5 Active Record attributes API

[Rails 5 Active Record attributes API](https://www.bigbinary.com/blog/rails-5-attributes-api)

- Author: Abhay Nikam
- Published: December 11, 2018
- Categories: Rails 5, Rails

Rails 5 introduces Active Record attributes API to type cast values to
appropriate Ruby types

### Rails 5 Create module and class level variables

[Rails 5 Create module and class level variables](https://www.bigbinary.com/blog/rails-5-adds-ability-to-create-module-and-class-level-variables-on-per-thread-basis)

- Author: Abhishek Jain
- Published: September 5, 2016
- Categories: Rails 5, Rails

In Rails 5, we can create specific class and module variables that live for the
lifetime of a thread

### Rails 5 silences assets logs in dev mode by default

[Rails 5 silences assets logs in dev mode by default](https://www.bigbinary.com/blog/rails-5-silences-assets-logs-in-development-mode-by-default)

- Author: Midhun Krishna
- Published: September 2, 2016
- Categories: Rails 5, Rails

quiet_assets gem used for silencing logging of assets in the development mode is
now part of Rails 5

### Rails 5 disables autoloading while app in production

[Rails 5 disables autoloading while app in production](https://www.bigbinary.com/blog/rails-5-disables-autoloading-after-booting-the-app-in-production)

- Author: Shailesh Kalamkar
- Published: August 29, 2016
- Categories: Rails 5, Rails

In Rails 5 autoloading is disbaled after booting the app in production mode by
default

### Rails 5 adds more control to fine tuning SSL usage

[Rails 5 adds more control to fine tuning SSL usage](https://www.bigbinary.com/blog/rails-5-adds-more-control-to-fine-tuning-ssl-usage)

- Author: Srihari K
- Published: August 24, 2016
- Categories: Rails 5, Rails

Rails 5 gives finer control over HSTS header and has cleaned up options for
using SSL

### Rails 5 Discard some flash messages to trim storage

[Rails 5 Discard some flash messages to trim storage](https://www.bigbinary.com/blog/rails-5-trims-session-storage-by-discarding-some-flash-messages)

- Author: Abhishek Jain
- Published: August 23, 2016
- Categories: Rails 5, Rails

Rails 5 trims down session storage by removing discarded flash messages before
persisting into the session

### Rails 5 deprecates alias_method_chain

[Rails 5 deprecates alias_method_chain](https://www.bigbinary.com/blog/rails-5-deprecates-alias-method-chain)

- Author: Neeraj Singh
- Published: August 21, 2016
- Categories: Rails 5, Rails

Rails 5 deprecates alias_method_chain in favor of Ruby's builtin method.

### New framework defaults in Rails 5 to make upgrade easier

[New framework defaults in Rails 5 to make upgrade easier](https://www.bigbinary.com/blog/new-framework-defaults-in-rails-5-to-make-upgrade-easier)

- Author: Srihari K
- Published: August 18, 2016
- Categories: Rails 5, Rails

Rails 5 adds feature flags for all the breaking changes to make upgrade process
easier

### Rails 5 Wildcard for specifying template dependencies

[Rails 5 Wildcard for specifying template dependencies](https://www.bigbinary.com/blog/rails-5-allows-wildcard-for-specifying-template-dependencies)

- Author: Abhishek Jain
- Published: August 17, 2016
- Categories: Rails 5, Rails

We can now use wildcard for adding all template dependencies from a directory
rather than adding files one by one for cache digests

### Rails 5 Passing records to fresh_when and stale?

[Rails 5 Passing records to fresh_when and stale?](https://www.bigbinary.com/blog/rails-5-supports-passing-collection-of-records-to-fresh_when-and-stale)

- Author: Ershad Kunnakkadan
- Published: August 16, 2016
- Categories: Rails 5, Rails

Rails 5 adds support to pass collection of records to fresh_when and stale? for
improved caching

### Set model name in fixtures as metadata

[Set model name in fixtures as metadata](https://www.bigbinary.com/blog/set-model-name-in-fixtures-as-metadata)

- Author: Srihari K
- Published: August 9, 2016
- Categories: Rails 5, Rails

In Rails 5 model name can be set as metadata in the fixture file, rather than
being infered from the fixture filename.

### ActionController::Parameters in Rails 5

[ActionController::Parameters in Rails 5](https://www.bigbinary.com/blog/parameters-no-longer-inherit-from-hash-with-indifferent-access-in-rails-5)

- Author: Rohit Arolkar
- Published: July 25, 2016
- Categories: Rails 5, Rails

ActionController::Parameters will throw deprecation warnings if we treat
ActionController::Parameters as hash.

### Rails 5 solves ambiguous column issue

[Rails 5 solves ambiguous column issue](https://www.bigbinary.com/blog/rails-5-fixes-ambiguous-cloumn-name-for-projected-fields-in-group-by-query)

- Author: Abhishek Jain
- Published: July 21, 2016
- Categories: Rails 5, Rails

We now don't have to provide a table name in quoted string for fetching fields
which are present in join table as well when used with group by clause

### Rails 5 Expression Indexes & Operator Classes support

[Rails 5 Expression Indexes & Operator Classes support](https://www.bigbinary.com/blog/rails-5-adds-support-for-expression-indexes-for-postgresql)

- Author: Midhun Krishna
- Published: July 20, 2016
- Categories: Rails 5, Rails

Active Record index creation api support adding expression indexes

### Attach arbitrary metadata to an Active Job in Rails 5

[Attach arbitrary metadata to an Active Job in Rails 5](https://www.bigbinary.com/blog/attach-arbitrary-metadata-to-an-active-job-in-rails-5)

- Author: Midhun Krishna
- Published: July 18, 2016
- Categories: Rails 5, Rails

We can add arbitrary metadata to Active Job while it is serialized and read it
back when the job is performed in Rails 5

### Partial template name without Ruby identifier Rails 5

[Partial template name without Ruby identifier Rails 5](https://www.bigbinary.com/blog/rails-5-partial-template-name-need-not-be-a-valid-ruby-identifier)

- Author: Prajakta Tambe
- Published: July 14, 2016
- Categories: Rails 5, Rails

Partial template can have any name which starts with underscore in Rails 5

### Rails 5 Passing current record for custom error

[Rails 5 Passing current record for custom error](https://www.bigbinary.com/blog/rails-5-allows-passing-record-to-error-message-generator)

- Author: Hitesh Rawal
- Published: July 13, 2016
- Categories: Rails 5, Rails

We can now pass the validated record to the proc for generating a custom error
message.

### Skip mailers while generating Rails 5 app

[Skip mailers while generating Rails 5 app](https://www.bigbinary.com/blog/skip-mailers-while-generating-rails-5-app)

- Author: Abhishek Jain
- Published: July 8, 2016
- Categories: Rails 5, Rails

We can skip adding mailers and its configuration when generating Rails 5 app

### Errors can be indexed with nested attributes in Rails 5

[Errors can be indexed with nested attributes in Rails 5](https://www.bigbinary.com/blog/errors-can-be-indexed-with-nested-attrbutes-in-rails-5)

- Author: Abhishek Jain
- Published: July 7, 2016
- Categories: Rails 5, Rails

We can now opt to index errors on nested attributes in Rails 5

### Rails 5 Conversion when deep munging params

[Rails 5 Conversion when deep munging params](https://www.bigbinary.com/blog/rails-5-does-not-convert-blank-array-to-nil-in-deep-munging)

- Author: Mohit Natoo
- Published: July 6, 2016
- Categories: Rails 5, Rails

Rails 5 persists with the empty are in deep munging and does not convert it to
nil.

### Specific mime types in controller tests in Rails 5

[Specific mime types in controller tests in Rails 5](https://www.bigbinary.com/blog/use-as-option-to-encode-request-with-specific-mime-type-in-rails-5)

- Author: Abhishek Jain
- Published: July 5, 2016
- Categories: Rails 5, Rails

We can provide a specific mime type to a request using \`as\` option in Rails 5

### Default response with 204 No Content in Rails 5

[Default response with 204 No Content in Rails 5](https://www.bigbinary.com/blog/controller-actions-default-no-content-in-rails-5-if-template-is-missing)

- Author: Abhishek Jain
- Published: July 3, 2016
- Categories: Rails 5, Rails

Controller actions will now render 204 No Content when we don't tell Rails how
to generate response

### Rails 5 ensures compatibility with Rack frameworks

[Rails 5 ensures compatibility with Rack frameworks](https://www.bigbinary.com/blog/rails-5-ensures-compatibility-between-action-dispatch-session-and-rack-session)

- Author: Mohit Natoo
- Published: June 30, 2016
- Categories: Rails 5, Rails

Rails 5 introduces \`each\` method in ActionDispatch::Request::Session to ensure
compatibility between Rails and other Rack frameworks.

### Rails 5 supports logging errors with tagged logging

[Rails 5 supports logging errors with tagged logging](https://www.bigbinary.com/blog/rails-5-supports-logging-errors-with-tagged-logging)

- Author: Sharang Dashputre
- Published: June 28, 2016
- Categories: Rails 5, Rails

Rails 5 now generates the application log with log tags applied to errors as
well

### Rails 5 makes sql statements even more colorful

[Rails 5 makes sql statements even more colorful](https://www.bigbinary.com/blog/rails-5-makes-sql-statements-even-more-colorful)

- Author: Abhishek Jain
- Published: June 27, 2016
- Categories: Rails 5, Rails

This new coloration approach makes it easier to scan the rails console for
specific types of SQL activity

### Rails 5 adds helpers method in controllers for ease

[Rails 5 adds helpers method in controllers for ease](https://www.bigbinary.com/blog/rails-add-helpers-method-to-ease-usage-of-helper-modules-in-controllers)

- Author: Abhishek Jain
- Published: June 26, 2016
- Categories: Rails 5, Rails

We can now use helpers method to call helper methods in controller

### Rails 5 supports adding comments in migrations

[Rails 5 supports adding comments in migrations](https://www.bigbinary.com/blog/rails-5-supports-adding-comments-migrations)

- Author: Prajakta Tambe
- Published: June 21, 2016
- Categories: Rails 5, Rails

Rails 5 adds support for database schema comments for tables, columns and
indexes for PostgreSQL and MySQL

### Rails 5 allows UUID as column type in create_join_table

[Rails 5 allows UUID as column type in create_join_table](https://www.bigbinary.com/blog/rails-5-create-join-table-with-uuid)

- Author: Hitesh Rawal
- Published: June 16, 2016
- Categories: Rails 5, Rails

Rails 5 started supporting UUID as a column type in create_join_table.

### Rails 5 adds another base class Application Job for jobs

[Rails 5 adds another base class Application Job for jobs](https://www.bigbinary.com/blog/rails-5-adds-application-jobs-for-jobs)

- Author: Hitesh Rawal
- Published: June 12, 2016
- Categories: Rails 5, Rails

Rails 5 adds explicit base class ApplicationJob for ActiveJob.

### Rails 5 Updating records in AR Relation

[Rails 5 Updating records in AR Relation](https://www.bigbinary.com/blog/rails-5-allows-updating-relation-objects-along-with-callbacks-and-validations)

- Author: Mohit Natoo
- Published: June 10, 2016
- Categories: Rails 5, Rails

Rails 5 modified the ActiveRecord::Relation#update method to now support update
on the relation. It also runs callbacks and validations on the records.

### Rails 5 prevents destructive action on production database

[Rails 5 prevents destructive action on production database](https://www.bigbinary.com/blog/rails-5-prevents-destructive-action-on-production-db)

- Author: Hitesh Rawal
- Published: June 7, 2016
- Categories: Rails 5, Rails

Rails 5 prevents destructive action on production database by keeping
environment version to internal metadata.

### Rails 5 adds finish option in find_in_batches

[Rails 5 adds finish option in find_in_batches](https://www.bigbinary.com/blog/rails-5-provides-finish-option-for-find-in-batches)

- Author: Mohit Natoo
- Published: June 6, 2016
- Categories: Rails 5, Rails

Rails 5 has an option to provide end value in find_in_batches method

### Rails 5 introduces country_zones helper method

[Rails 5 introduces country_zones helper method](https://www.bigbinary.com/blog/rails-5-introduces-helpers-for-country-zones)

- Author: Mohit Natoo
- Published: June 1, 2016
- Categories: Rails 5, Rails

Rails 5 now allows to fetch information about all the timezones in a particular
country by introductin of a new helper method.

### Rails 5 provides fragment caching in Action Mailer views

[Rails 5 provides fragment caching in Action Mailer views](https://www.bigbinary.com/blog/rails-5-provides-fragment-caching-in-action-mailer-view)

- Author: Prajakta Tambe
- Published: May 31, 2016
- Categories: Rails 5, Rails

Templates in rails 5 can use fragment cache like Action View templates

### Rails 5 adds OR support in Active Record

[Rails 5 adds OR support in Active Record](https://www.bigbinary.com/blog/rails-5-adds-or-support-in-active-record)

- Author: Abhishek Jain
- Published: May 30, 2016
- Categories: Rails 5, Rails

We will now be able to perform OR operation in Active Record without having to
write custom SQL.

### Rails 5 ArrayInquirer and checking array contents

[Rails 5 ArrayInquirer and checking array contents](https://www.bigbinary.com/blog/rails-5-introduces-active-support-array-inquirer)

- Author: Mohit Natoo
- Published: May 27, 2016
- Categories: Rails 5, Rails

Rails 5 has wrapped Array in an ArrayInquirer giving us a friendlier way to
check its contents. This post also explains its usage in request variants.

### Rails 5 Renaming transactional fixtures to tests

[Rails 5 Renaming transactional fixtures to tests](https://www.bigbinary.com/blog/rails-5-renamed-transactional-fixtures-to-transactional-tests)

- Author: Mohit Natoo
- Published: May 26, 2016
- Categories: Rails 5, Rails

Rails 5 renamed use_transactional_fixtures method to use_transactional_tests.
This was to make it clear that its functionality has nothing to do with use of
fixtures.

### Rails 5 adds ignored_columns for Active Record

[Rails 5 adds ignored_columns for Active Record](https://www.bigbinary.com/blog/rails-5-adds-active-record-ignored-columns)

- Author: Hitesh Rawal
- Published: May 24, 2016
- Categories: Rails 5, Rails

Rails 5 has implemented ignored_columns method for active record.

### Rails 5 adds a hidden field on collection radio buttons

[Rails 5 adds a hidden field on collection radio buttons](https://www.bigbinary.com/blog/rails-5-add-a-hidden-field-on-collection-radio-buttons)

- Author: Prajakta Tambe
- Published: May 18, 2016
- Categories: Rails 5, Rails

Rails 5 adds a hidden field on collection radio buttons to handle situation when
user submits a form without selecting any radio button.

### Rails 5 Attributes from Active Record to Active Model

[Rails 5 Attributes from Active Record to Active Model](https://www.bigbinary.com/blog/rails-5-moved-assign-attributes-from-activerecord-to-activemodel)

- Author: Mohit Natoo
- Published: May 17, 2016
- Categories: Rails 5, Rails

In Rails 5 we can use attribute assignment outside of Active Record inherited
classes

### Rails 5 Configure Active Job backend adapter for jobs

[Rails 5 Configure Active Job backend adapter for jobs](https://www.bigbinary.com/blog/rails-5-allows-to-inherit-activejob-queue-adapter)

- Author: Mohit Natoo
- Published: May 15, 2016
- Categories: Rails 5, Rails

Rails 5 provides support to configure queue_adapter at job level and this
queue_adapter can be inherited by child jobs.

### Rails 5 accepts 1 or true for acceptance validation

[Rails 5 accepts 1 or true for acceptance validation](https://www.bigbinary.com/blog/rails-5-accepts-1-or-true-for-acceptance-validation)

- Author: Mohit Natoo
- Published: May 13, 2016
- Categories: Rails 5, Rails

Rails 5 now allows accepting true in acceptance validation. Previously only "1"
was accepted in acceptance validation.

### Rails 5 supports bi-directional destroy dependency

[Rails 5 supports bi-directional destroy dependency](https://www.bigbinary.com/blog/Rails-5-supports-bi-directional-destroy-dependency)

- Author: Abhishek Jain
- Published: May 12, 2016
- Categories: Rails 5, Rails

We can now add bi-directional destroy dependency on Rails associations

### Rails 5 adds after_commit callbacks aliases

[Rails 5 adds after_commit callbacks aliases](https://www.bigbinary.com/blog/rails-5-adds-after_create-aliases)

- Author: Hitesh Rawal
- Published: May 11, 2016
- Categories: Rails 5, Rails

Rails 5 Introduces after\_{create,update,delete}\_commit callbacks as aliases
for after_commit.

### Rails 5 Updating a record without updating timestamps

[Rails 5 Updating a record without updating timestamps](https://www.bigbinary.com/blog/rails-5-allows-updating-without-updating-timestamps)

- Author: Abhishek Jain
- Published: May 9, 2016
- Categories: Rails 5, Rails

We can save a record without updating timestamps in Rails 5

### Rails 5 Retrieving info of failed validations

[Rails 5 Retrieving info of failed validations](https://www.bigbinary.com/blog/rails-5-adds-a-way-to-get-information-about-types-of-failed-validations)

- Author: Abhishek Jain
- Published: May 3, 2016
- Categories: Rails 5, Rails

Rails 5 makes it possible to return information about failed validator types
instead of just returning translated error messages as before

### Rails 5 - What's in it for me?

[Rails 5 - What's in it for me?](https://www.bigbinary.com/blog/rails-5-webinar)

- Author: Prathamesh Sonpatki
- Published: April 22, 2016
- Categories: Rails 5, Rails

Learn more about upcoming changes in Rails 5 release

### Rails 5 officially supports MariaDB

[Rails 5 officially supports MariaDB](https://www.bigbinary.com/blog/rails-5-official-supports-mariadb)

- Author: Vipul
- Published: April 21, 2016
- Categories: Rails 5, Rails

Rails 5 officially supports MariaDB

### Changes to test controllers in Rails 5

[Changes to test controllers in Rails 5](https://www.bigbinary.com/blog/changes-to-test-controllers-in-rails-5)

- Author: Abhishek Jain
- Published: April 19, 2016
- Categories: Rails 5, Rails

Deprecation of assigns and assert_template in controller tests and usage of
keyword arguments in HTTP methods

### accessed_fields to find active fields in application

[accessed_fields to find active fields in application](https://www.bigbinary.com/blog/accesssed-fields-to-find-actually-used-fileds-in-Rails-5)

- Author: Abhishek Jain
- Published: April 18, 2016
- Categories: Rails 5, Rails

Rails 5 introduces accessed_fields method to determine all the fields that were
accessed on a model while performing some operation

### Rails 5 Warning when fetching with Active Record

[Rails 5 Warning when fetching with Active Record](https://www.bigbinary.com/blog/rails-5-adds-option-to-log-warning-when-fetching-big-result-sets)

- Author: Abhishek Jain
- Published: April 13, 2016
- Categories: Rails 5, Rails

We can now log warning when Active Record tries to fetch the result set greater
than configured limit

### Rails 5 Sending STDOUT via environment variable

[Rails 5 Sending STDOUT via environment variable](https://www.bigbinary.com/blog/rails-5-allows-to-send-log-to-stdout-via-environment-variable)

- Author: Mohit Natoo
- Published: April 12, 2016
- Categories: Rails 5, Rails

Rails 5 has introduced an environment variable, with the help of which logs can
now be directed to STDOUT in production environment.

### Validate multiple contexts together in Rails 5

[Validate multiple contexts together in Rails 5](https://www.bigbinary.com/blog/validate-multiple-contexts-in-rails-5)

- Author: Vijay Kumar Agrawal
- Published: April 8, 2016
- Categories: Rails 5, Rails

Rails 5 enhancement to validate a model on multiple contexts at once

### Rails 5 changes protect_from_forgery execution order

[Rails 5 changes protect_from_forgery execution order](https://www.bigbinary.com/blog/rails-5-default-protect-from-forgery-prepend-false)

- Author: Vijay Kumar Agrawal
- Published: April 6, 2016
- Categories: Rails 5, Rails

The default order of protect_from_forgery is changed from prepend to call order.

### Rails 5 provides config to use UUID as primary key

[Rails 5 provides config to use UUID as primary key](https://www.bigbinary.com/blog/rails-5-provides-application-config-to-use-UUID-as-primary-key)

- Author: Vijay Kumar Agrawal
- Published: April 4, 2016
- Categories: Rails 5, Rails

Rails can use UUID as primary key for all the migrations by setting config.

### Rails 5 changed Active Job default adapter to Async

[Rails 5 changed Active Job default adapter to Async](https://www.bigbinary.com/blog/rails-5-changed-default-active-job-adapter-to-async)

- Author: Mohit Natoo
- Published: March 29, 2016
- Categories: Rails 5, Rails

The default Active Job adapter has been changed to Async from Inline in Rails 5.

### Support for left outer join in Rails 5

[Support for left outer join in Rails 5](https://www.bigbinary.com/blog/support-for-left-outer-joins-in-rails-5)

- Author: Ratnadeep Deshmane
- Published: March 24, 2016
- Categories: Rails 5, Rails

No need of writing SQL in your code every time there is need to do left outer
join

### has_secure_token for unique random token in Rails 5

[has_secure_token for unique random token in Rails 5](https://www.bigbinary.com/blog/has-secure-token-to-generate-unique-random-token-in-rails-5)

- Author: Abhishek Jain
- Published: March 23, 2016
- Categories: Rails 5, Rails

Use has_secure_token to handle creation and regeneration unique random
alphanumeric token

### Suppress save events in Rails 5

[Suppress save events in Rails 5](https://www.bigbinary.com/blog/suppress-save-events-in-rails-5)

- Author: Abhishek Jain
- Published: March 11, 2016
- Categories: Rails 5, Rails

Rails 5 introduces way to suppress save events on a model

### Rails 5 improves rendering partial from cache

[Rails 5 improves rendering partial from cache](https://www.bigbinary.com/blog/rails-5-makes-partial-redering-from-cache-substantially-faster)

- Author: Ratnadeep Deshmane
- Published: March 9, 2016
- Categories: Rails 5, Rails

With the inclusion of multi_fetch_fragments gem in Rails core, Rails 5 improves
page load speeds substantially.

### Rails 5 switches from strong etags to weak etags

[Rails 5 switches from strong etags to weak etags](https://www.bigbinary.com/blog/rails-5-switches-from-strong-etags-to-weak-tags)

- Author: Prajakta Tambe
- Published: March 8, 2016
- Categories: Rails 5, Rails

Rails 5 switches from strong etags to weak etags

### Parameter filtering enhancement in Rails 5

[Parameter filtering enhancement in Rails 5](https://www.bigbinary.com/blog/parameter-filtering-enhacement-rails-5)

- Author: Vijay Kumar Agrawal
- Published: March 7, 2016
- Categories: Rails 5, Rails

Rails 5 enhances parameter filtering of sensitive data appearing in the logs

### Rails 5 adds http_cache_forever

[Rails 5 adds http_cache_forever](https://www.bigbinary.com/blog/rails-5-adds-http-cache-forever)

- Author: Abhishek Jain
- Published: March 4, 2016
- Categories: Rails 5, Rails

Rails 5 introduces way to cache response forever by adding http_cache_forever

### Better exception responses in Rails 5 API apps

[Better exception responses in Rails 5 API apps](https://www.bigbinary.com/blog/better-exception-responses-in-rails-5-api-apps)

- Author: Akshay Mohite
- Published: March 3, 2016
- Categories: Rails 5, Rails

Rails 5 responds with proper responses to exceptions even for API apps with
introduction of new configuration debug_exception_format.

### Use file_fixture to access test files in Rails 5

[Use file_fixture to access test files in Rails 5](https://www.bigbinary.com/blog/use-file_fixture-to-access-test-files-rails-5)

- Author: Ershad Kunnakkadan
- Published: March 2, 2016
- Categories: Rails 5, Rails

Use file_fixture in Rails 5 to access test files

### Migrations are versioned in Rails 5

[Migrations are versioned in Rails 5](https://www.bigbinary.com/blog/migrations-are-versioned-in-rails-5)

- Author: Abhishek Jain
- Published: March 1, 2016
- Categories: Rails 5, Rails

Migrations are versioned from Rails 5 onwards.

### Rails 5 improves redirect_to:back method

[Rails 5 improves redirect_to:back method](https://www.bigbinary.com/blog/rails-5-improves-redirect_to_back-with-redirect-back)

- Author: Abhishek Jain
- Published: February 29, 2016
- Categories: Rails 5, Rails

Rails 5 introduces redirect_back method with fallback_location instead of using
redirect_to:back

### Rails 5 allows configuring queue name for mailers

[Rails 5 allows configuring queue name for mailers](https://www.bigbinary.com/blog/rails-5-allows-configuring-queue-name-for-mailers)

- Author: Abhishek Jain
- Published: February 26, 2016
- Categories: Rails 5, Rails

We can configure queue name for mailers with Rails 5

### Rails 5 handles DateTime with better precision

[Rails 5 handles DateTime with better precision](https://www.bigbinary.com/blog/rails-5-handles-datetime-with-better-precision)

- Author: Abhishek Jain
- Published: February 23, 2016
- Categories: Rails 5, Rails

MYSQL 5.6 and above version have started rounding of the milliseconds and it's
impact and fix with Rails 5.

### Active Support Improvements in Rails 5

[Active Support Improvements in Rails 5](https://www.bigbinary.com/blog/active-support-improvements-in-Rails-5)

- Author: Abhishek Jain
- Published: February 17, 2016
- Categories: Rails 5, Rails

Rails 5 introduces number of new methods in Rails 5

### Rails 5 improves route search with advanced options

[Rails 5 improves route search with advanced options](https://www.bigbinary.com/blog/rails-5-options-for-rake-routes)

- Author: Abhishek Jain
- Published: February 16, 2016
- Categories: Rails 5, Rails

Rails 5 brings additional options for rake routes task to display specific
routes.

### Rails 5 makes belongs_to association required by default

[Rails 5 makes belongs_to association required by default](https://www.bigbinary.com/blog/rails-5-makes-belong-to-association-required-by-default)

- Author: Abhishek Jain
- Published: February 15, 2016
- Categories: Rails 5, Rails

Rails 5 makes it necessary to have belongs_to association record by default.

### Rails 5 doesn't halt callback chain if false is returned

[Rails 5 doesn't halt callback chain if false is returned](https://www.bigbinary.com/blog/rails-5-does-not-halt-callback-chain-when-false-is-returned)

- Author: Abhishek Jain
- Published: February 13, 2016
- Categories: Rails 5, Rails

Preferred way of halting callback chain in Rails 5 is now using throw(:abort)
instead of returning false.

### Caching result sets and collection in Rails 5

[Caching result sets and collection in Rails 5](https://www.bigbinary.com/blog/activerecord-relation-cache-key)

- Author: Mohit Natoo
- Published: February 2, 2016
- Categories: Rails 5, Rails

Rails 5 provides cache_key for ActiveRecord::Relation that can help in caching
result of a collection of records.

### Caching in development environment in Rails 5

[Caching in development environment in Rails 5](https://www.bigbinary.com/blog/caching-in-development-environment-in-rails5)

- Author: Mohit Natoo
- Published: January 25, 2016
- Categories: Rails 5, Rails

Rails 5 has added ability to enable cache in development environment without
changing environment.rb file. This blog post discusses the feature.

### Rails 5 wraps all rake commands using rails

[Rails 5 wraps all rake commands using rails](https://www.bigbinary.com/blog/rails-5-supports-rake-commands-using-rails)

- Author: Mohit Natoo
- Published: January 14, 2016
- Categories: Rails 5, Rails

In Rails 4 some commands use rake and some commands use rails. Rails 5 brings
consistency by having rails command to do everything.

### Each form gets its own CSRF token in Rails 5

[Each form gets its own CSRF token in Rails 5](https://www.bigbinary.com/blog/per-form-csrf-token-in-rails-5)

- Author: Prajakta Tambe
- Published: January 11, 2016
- Categories: Rails 5, Rails

Rails 5 allows each form to have its own CSRF token to prevent hacking of the
site.

### Rendering views outside of controllers in Rails 5

[Rendering views outside of controllers in Rails 5](https://www.bigbinary.com/blog/rendering-views-outside-of-controllers-in-rails-5)

- Author: Prathamesh Sonpatki
- Published: January 8, 2016
- Categories: Rails 5, Rails

Rails 5 allows rendering views outside of controllers. It has many benefits like
now views can be used in Mailers and other places.

### Test runner in Rails 5

[Test runner in Rails 5](https://www.bigbinary.com/blog/test-runner-in-rails-5)

- Author: Prathamesh Sonpatki
- Published: January 3, 2016
- Categories: Rails 5, Rails

Running tests got much easier in Rails 5. Now failing tests point to line number
and makes it easier to re run a failing test. There are many more goodies.

### ApplicationRecord in Rails 5

[ApplicationRecord in Rails 5](https://www.bigbinary.com/blog/application-record-in-rails-5)

- Author: Prathamesh Sonpatki
- Published: December 28, 2015
- Categories: Rails 5, Rails

If we want to add a functionality to all models we no longer need to pollute
whole ActiveRecord::Base. Just add that feature to ApplicationRecord.

### Rails 5 allows setting custom HTTP Headers for assets

[Rails 5 allows setting custom HTTP Headers for assets](https://www.bigbinary.com/blog/rails-5-allows-setting-custom-http-headers-for-assets)

- Author: Vipul
- Published: October 31, 2015
- Categories: Rails 5, Rails

Ability to set custom HTTP header is needed to have better control over the
delivery of assets. In this blog we'll see how that can be done.

## Links

- [Human page](https://www.bigbinary.com/blog/categories/rails-5)
