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
Ruby On Rails Garbage Collector Algorithm
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.
Ruby On Rails Include
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.
Ruby On Rails Action Cable
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.
Rails API
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.
Rake Run 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.
Ruby On Rails CustomURL
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.
List Subjects Ajax
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 :

  • Rails uses a lot of memory,up to 150MB per instance
  • Requires more application servers
  • Ruby on Rails - Drawbacks - Rails is hard to deploy :

  • Harder than PHP, better with Passenger
  • Lots of moving parts
    • Rails, apps, gems, plugins
    • Application server, webserver
  • Deployment via scripts
    • Via the Capistrano tool
    • Easy to break something
  • Deployment to multiple servers

  • This ruby on rails tutorial page provides you the following key areas such as ruby , rail , ruby on rails , rail forum , ruby on rails tutorial , ruby tutorial , rails guides , rails tutorial , learn ruby , rails form_for , ruby rails , ruby class , what is ruby on rails , rails installer , ruby online , learn ruby on rails , ruby on rails jobs , rails find_by , install rails , easyrail , rubyonrails , link_to rails , ruby on rails developer , learn ruby the hard way , railscasts , ruby on rails examples , ruby on rails vs php , rails 4 , rails activerecord , rails generate , ruby and rails , ruby on rails download , install ruby on rails , ruby net http , what is rails , ruby app , ruby vs ruby on rails , ruby on rails windows , rails for zombies , ruby on rails book , ruby on rails development , ruby on rails ide , ruby on rails tutorial pdf

    Related Searches to Ruby on Rails Features