Author: admin
-
Ruby on Rails 5 Hello World Example
Prerequisites Text Editor: You can use any text editor which is suitable for you. We are using Sublime Text editor which features many plugins. Browser: We are using Ubuntu default browser, Mozilla Firefox. Hello World Example Step 1 Create a directory jtp in which all the code will be present and will navigate from the command line. Step 2 Change the…
-
Rails Scripts
Rails provides us some excellent tools that are used to develop Rails application. These tools are packaged as scripts from command line. Following are the most useful Rails scripts used in Rails application: Rails Console The Rails console is as command line utility which runs Rails application from the command line. The Rails console is…
-
Rails IDE or Editor
Ruby on Rails can be used with either a simple text editor or with an IDE. A text editor is a tool that creates and edits a file with only plain text. Once the code is written in the editor, it need to be compiled and run on a command line tool. An IDE stands…
-
Ruby on Rails Installation
We will set up Ruby on Rails in Ubuntu 14.04 operating system. There are three methods to install Ruby: We will install using rbenv as it is the most recommended way. First we will install some dependencies for Ruby: Install rbenv Installing rbenv is a simple two way process. First rbenv will be installed and…
-
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.…
-
Ruby on Rails Introduction
Ruby on Rails is a server-side web application development framework written in Ruby language by David Heinemeier Hansson. It allows you to write less code than other languages and frameworks. It includes everything needed to create database-backed web applications according to MVC pattern. It is opinionated software. There are two major guiding principles: Ruby on…
-
Ruby XPath and XSLT
Ruby XPath Ruby XPath is a language to find information in an XML file. It is an alternative to view XML file. It is used to navigate through elements and attributes in an XML document, treating that document as a logical ordered tree. Ruby XPath is very useful to get relevant information and attributes from…
-
Ruby XML (REXML)
XML is eXtensible Markup Language like HTML. It allows programmers to develop applications that can be read by other applications irrespective of operating system and developmental language used. It keeps track of small to medium amounts of data without any SQL based technique in backend. REXML is a pure Ruby XML processor. It represents a…
-
Ruby LDAP
Net::LDAP for Ruby is also written as net::ldap. It stands for Lightweight Directory Access Protocol. It is an internet standard protocol used to access directory servers. Its basic search unit is the entity, which corresponds to a person or other domain-specific object. A directory which supports LDAP protocol, typically stores information about a number of…
-
Ruby Thread
Thread means lightweight sub-process. It is a separate path of execution. In Ruby, different parts of a program can run at the same time by either splitting tasks within a program using multiple threading or splitting tasks between different programs using multiple process. Threads are the Ruby implementation for a concurrent programming model. Ruby Multithreading…