Ruby on Rails - Ruby on Rails Features - rails drawbacks - ruby on rails tutorial - rails guides - rails tutorial - ruby rails
What are the features of ruby on rails?
- Ruby on Rails contains features that help in increasing developer productivity.
- Some of the main features including MVC architecture:
- Ruby on Rails is based on the MVC (Model View Controller) architecture that enables the data to be separated from presentation.
- Ruby on Rails, or simply Rails, is a server-side web application framework written in Ruby under the MIT License.
- Rails is a model-view-controller (MVC) framework, providing default structures for a database, a web service, and web pages.
- Rails 5 was launched on 18th September 2015 by David Heinemeier Hansson in Atlanta.
Features:
- Some new features were implemented in Rails 5 version.
- Symbol garbage collector
- Module #prepend
- Keyword arguments
- Action Mailer
- Action view
- Turbolinks
- Action cable
- Actionpack Assertions
- Rails API
- Render from anywhere
- Rake command
- Customized library
- AJAX library
Symbol Garbage Collector
- To 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
Learn Ruby On Rails Tutorials - Ruby On Rails Garbage Collector Algorithm - Ruby On Rails Examples
Module #prepend
- It allows you to insert a module in front of the class it was prepended.
Learn Ruby On Rails Tutorials - Ruby On Rails Include - Ruby On Rails Examples
Keyword Arguments
- It supports keyword arguments which helps to reduce memory consumption by Rails application.
Action Mailer
- New methods deliver_now or deliver_later are used instead of #deliver and #deliver!.
Action View
- Helper methods like content_tag_for and div_for were removed from the core and moved out to a separate gem.
ruby on rails tutorial tags - ruby , rail , ruby on rails , rail forum , ruby on rails tutorial , ruby tutorial , rails guides , rails tutorial , learn ruby
Turbolinks
- 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.
Action Cable
- 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.
Learn Ruby On Rails Tutorials - Ruby On Rails Action Cable - Ruby On Rails Examples
ActionPack Assertions
- The assertions assert_template and assigns() are deprecated and moved into its own gem.
Rails API
- It allows you to generate API and cleans all the middleware which is not necessary for an application.
Learn Ruby On Rails Tutorials - Rails API - Ruby On Rails Examples
Render From Anywhere
- Before we used gem render_anywhere to render views outside controller.
- In Rails 5, you can render your views from anywhere.
Rake Command
- Rails 5 runs you a feature which allows you to restart all your apps with the rake restart command.
Learn Ruby On Rails Tutorials - Rake Run Command - Ruby On Rails Examples
ruby on rails tutorial tags - ruby , rail , ruby on rails , rail forum , ruby on rails tutorial , ruby tutorial , rails guides , rails tutorial , learn ruby
Customized URL
- Search engine friendly URLs can be developed in Rails.
Learn Ruby On Rails Tutorials - Ruby On Rails CustomURL - Ruby On Rails Examples
AJAX Library
- Rails provide you an extensive library of AJAX functions.
- The associated java scripting required for AJAX gets generated automatically.
Learn Ruby On Rails Tutorials - List Subjects Ajax - Ruby On Rails Examples
ruby on rails tutorial tags - ruby , rail , ruby on rails , rail forum , ruby on rails tutorial , ruby tutorial , rails guides , rails tutorial , learn ruby
Ruby on Rails - Drawbacks - Rails is inefficient :
Ruby on Rails - Drawbacks - Rails is hard to deploy :
- Rails, apps, gems, plugins
- Application server, webserver
- Via the Capistrano tool
- Easy to break something