Category: Ruby on Rails

Multi Tenant Application with Ruby on Rails

You can develop multi tenant application very easily with Ruby on Rails This article describe how you can use the tenant_id  in different ways when you build the multi-tenant application You can use the gem called apartment Multitenancy Crash Course: Multitenancy with the Apartment gem If you would like to learn more about Multi Tenancy […]

Read more

Authentication with Devise

In this tutorial we will see how you can authenticate the RUBY on Rails application with Devise gem Devise Step 1 Add the following code to youe Genfile gem ‘devise’ Step 2 Next, you run the following command rails generate devise:install This will make your application ready for Device Some setup you must do manually […]

Read more

What is RACK in Rail

Rack is a Ruby replacement for CGI Rack sits between Rail Framework and the Web Server So Rack provides you minimal,modular and adaptable interface for developing web applications

Read more
Model in Ruby on Rails

Model in Ruby on Rails

How to create a model rails g model category category_name I want to create Product and Category models. Product model has a reference to Category model So I first create the model Category

Your migrated file @db\migrate location

and then run the migrate

Second I will create the Product

You can […]

Read more

Getting Started – Ruby on Rail

To install rails on your Mac computer, you can use the following command >sudo gem install rails Create the Rail project with MYSQL database support >rails new MyProject -d mysql What is Bundle in your Rails project? Bundle is separate gem for Rails Bundle manage the gems which your Rail application need It tracks and […]

Read more