Ruby on Rails Features
Rails 5 was launched on 18th September 2015 by David Heinemeier Hansson in Atlanta. Some new features were implemented in Rails 5 version.
Some features are listed below:
Symbol Garbage Collector
Passing symbols opens the possibility of several attacks in your system. The symbol garbage collector collects the symbols which prevents your system from several attacks.
It allows you to insert a module in front of the class it was prepended.
It supports keyword arguments which helps to reduce memory consumption by Rails application.
New methods deliver_now or deliver_later are used instead of #deliver and #deliver!.
Helper methods like content_tag_for and div_for were removed from the core and moved out to a separate gem.
Sometimes web pages reloads very slow because it loads full page from the server. Turbolinks 3 reloads only the content of the body, it doesn't reloads the whole page.
It is a framework which is used to extend Rails via Websockets to add some functionality. It very smoothly integrates Websockets with the rest of the Rails application. It allows you to easily add some real time features to your app.
The assertions assert_template and assigns() are deprecated and moved into its own gem.
It allows you to generate API and cleans all the middleware which is not necessary for an application.
Render From Anywhere
Earlier we used gem render_anywhere to render views outside controller. In Rails 5, you can render your views from anywhere.
Rails 5 provides you a feature which allows you to restart all your apps with the rake restart command.
Search engine friendly URLs can be developed in Rails.
Rails provide you an extensive library of AJAX functions. The associated java scripting required for AJAX gets generated automatically.