Ruby Tutorial

Ari
June 19, 2017
Ruby Tutorial No Comments

ActiveRecord Association – Ruby Tutorial

Associations are used to relate ActiveRecord models to each other. And they implement this by having database table and having correct primary and foreign key. The association types that are built  in Ruby On Rails are has_many has_one belongs_to has_and_belongs_to_many has_many, :through   The has_many and belongs_to is very popular. It defines the one to […]

READ MORE
Ari
June 15, 2017
Ruby Tutorial No Comments

ActiveRecord CRUD operations – Ruby Tutorial

In this Ruby Tutorial 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
June 5, 2017
Ruby Tutorial No Comments

Modules in Ruby Tutorial

In this Ruby Tutorial we will discuss about Modules in Ruby. The modules in Ruby are simply the wrappers around our Ruby code. But wait, then what was a class? The class was a way to gather different methods and attributes. Modules work the same way as class does but the one most important difference is […]

READ MORE
Ari
June 1, 2017
Ruby API - Ruby Tutorial No Comments

Scraping web with Ruby Tutorial

Scraping web with Ruby Web scraping is the one of most important skills every good developer should have. Sometimes we want to use the data that exist on someone else’s website and build our own application. For example, we want to build a movie rating website, then we are not supposed to update the contents […]

READ MORE
Ari
May 30, 2017
Ruby Tutorial No Comments

Ruby Tutorial: Rspec

In this Ruby tutorial, we will cover about Rspec. Rspec is a testing framework for Ruby. If you are a software developer then you must have already done some testing before. For example, you might create a HTML form and input the data and check and see if the form when submitted is saves successfully […]

READ MORE
Ari
May 27, 2017
Ruby Tutorial No Comments

Ruby Tutorial: Building Your Own Ruby Gem

For those who have already learn Ruby, or maybe have been a little bit used to programming in Ruby, the so called ‘Ruby gem’ should not be surprising, isn’t it? Well, just to make sure we have a common understanding of Ruby gem is, let’s review it in brief. To make it simple, we would […]

READ MORE
Ari
May 22, 2017
Ruby Tutorial No Comments

Ruby Tutorial: Making Your Own Blog With Ruby on Rails

# Introduction Ruby on Rails is an awesome framework for easily and quickly building up a web application. By using Rails framework, you can build many different web apps, including a blog platform. In this tutorial we will give you a basic guide to build a blog platform on your own, using Ruby on Rails […]

READ MORE