Ruby on Rails Tutorial

Ari
June 23, 2017
Ruby on Rails Tutorial No Comments

Rails Crud Operation

In this post we will talk about some ActiveRecord techniques you can use when creating, updating and deleting ActiveRecord objects. You will learn an alternative way of creating record by using code block. Probably most of the Rails developers are familiar in creating objects using the following technique   @product = Product.new @product.name = “T-shirt” […]

READ MORE
Ari
Ruby on Rails Tutorial No Comments

Ruby Tutorial: Making Instagram

Introduction First thing first, to start building your own ‘Instagram’ web, you should create a new project for that in our rails. We need to do it in our terminal. What I mean by terminal, is a console command where we can type and calls rails code. In windows, it might be your command prompt […]

READ MORE
Ari
June 11, 2017
Ruby on Rails Tutorial No Comments

Tutorial Reversible Migration in Rails

In this tutorial we will discuss about reversible migration. Writing reversible migration is one of the essential skills that a Ruby On Rails developer needs. When we don’t write reversible migration in our projects, it can create a lot of problems in future for database operations. Before learning how to write reversible migrations in our […]

READ MORE
Ari
June 7, 2017
Ruby on Rails Tutorial No Comments

Single Table Inheritance In Ruby – Ruby on Rails Tutorial

In this ruby on rails tutorial, we will discuss about single table inherintance. It is one of the implementation of object oriented inheritance in relational database. While mapping the database table with the object in object oriented language, one of the field in the database table identifies what class in the inheritance hierarchy it belongs […]

READ MORE
Ari
June 6, 2017
Ruby on Rails Tutorial No Comments

Hash and Symbols – Ruby on Rails Tutorial

A hash is an unordered, object-indexed collection of objects( or key value pairs ). The only difference between hash and array is that array is an ordered collection whereas hash is an unordered collection. We cannot count an order for the things that are going to be stored in a hash. Instead of keeping track […]

READ MORE
Ari
June 3, 2017
Ruby on Rails Tutorial No Comments

Geolocation Rails Tutorial

Rails Tutorial for Geolocation. Geolocation is the process of getting the actual physical location of an object like mobile phone, computers or any other devices connected to internet. The location of user can enhance the marketing and recommendation. Also tracking people and getting to know if they reached the destination safely or tracking criminal activities would […]

READ MORE
Ari
June 2, 2017
Ruby on Rails Tutorial No Comments

Ruby on Rails Tutorial: Actioncable

On this Ruby on Rails tutorial, we will cover about Actioncable. A websocket protocol is a variation of HTTP that creates a continuous connection between client and server so that there exists two way connection between them. Using this we can achieve real time applications like chat apps, gaming apps that are powerful than ordinary […]

READ MORE
Ari
May 31, 2017
Ruby on Rails Tutorial No Comments

Solidus (Ruby on Rails Tutorial)

On this Ruby on Rails tutorial, we will talking about Solidus. If you are new with Ruby on Rails, you might want to read this: What is Ruby On Rails as the Leading Programming Language Framework So..different Rails have different opinion when people discuss about using Ruby On Rails for backed for the e-commerce project. Some […]

READ MORE
Ari
May 28, 2017
Ruby on Rails Tutorial No Comments

Rails tutorial: Using Rails as JSON API

In this Rails tutorial, we will learn to use Ruby On Rails as a JSON API. This feature was already made in Rails back in around 2012 but it was based on standalone Rails::API gem. Now, this gem has been integrated into Rails. The idea behind this is creating API for clients to access data […]

READ MORE
Ari
May 26, 2017
Ruby on Rails Tutorial No Comments

Rails Tutorial: Building Stock Market Application (2)

In the previous post, Rails Tutorial: Building Stock Market Application (part 1), we created authentication system, added bootstrap. In this post we are going to work on the Stock model, create the controller for it and add the ability to track stocks by the user. Let’s start by creating the stock model first. For this enter […]

READ MORE