Skip to content
Home » Blog » Ruby on Rails

Ruby on Rails

  • by
Ruby on rails
Reading Time: 3 minutes

Ruby on Rails

Introduction

Sup, This article is about Ruby on Rails, all in one article, brief history with some examples.

What is Ruby on Rails?

It’s a framework that was first released in 2004 by David Heinemeier Hansson

It’s an open-source framework that allows MVC architecture.

You can build a full website solution with it.

How do I learn Ruby on Rails?

There are several online courses like This one which was a good startup for me.

What do I need to practice?

A Laptop or a pc and a hard-working brain!

What is the difference between Ruby and Ruby on Rails?

Ruby is a programming language while Ruby on Rails is a framework that uses ruby to implement code with simple methods.

What is the most famous website that was built with RoR?

  • Airbnb
  • Fiverr
  • Soundcloud
  • Kickstarter
  • Hulu
  • Github
  • Twitch
  • Shopify
  • Couchsurfing

One also might worth mentioning is that Twitter was built originally with RoR but after scaling and reducing the resource usage they decided to change to Scala.

What is MVC architecture?

Model, View, Control.

A complete framework to design software where Model communicates with Controller and Controller communicates with View.

The model would carry out the database part, the Controller would control actions taken on the application while View is more about how users see the application-like the layout.

What are the minimum system requirements for RoR application?

1GB RAM, 1 CPU.

What is Active Record in Rails?

The Model or the M in the MVC architecture.

What is Action Cable in Rails?

The feature started in Rails 5, which allows developers to create real-time features to be written in Ruby in the same style and form as the rest of your Rails application.

What is Action Mailer in Rails?

Action Mailer allows you to send emails from your application using mailer classes and views.

What is Ruby on Rails helpers?

A set of methods that comes built-in with rails to help developers to reuse code, such as:

 

number_to_human
time_ago_in_words

How to build a simple app with RoR on Ubuntu?

Open your terminal and type the following command after you choose your prober app path:
Rails new App name
Cd App name
Rails s
Now open your browser and type locallhost:3000
Congrats on your first app.

Is Ruby on Rails worth learning?

Absolutely Yes, the only problem with Rails’s future’s implementing an AI model but there would several solutions to fix this issue.

on the other hand, rails are very very powerful and easy to learn compared to any other framework.

Which is faster Ruby or Python?

Python is faster to compile than Ruby.

Is Ruby difficult to learn?

Absolutely no, as a software engineer and website developer, Ruby is one of the easiest programming languages to learn, it’s syntax is the closest to the English language which makes it a huge advantage for any who finds it hard to learn how to code.

Is it a front end or backend, Is it Free?

  • It is a Backend.
  • It is open-source software. So, It isn’t only free to use, but you can also help make it better.

Why it is not popular?

Machine learning, Ruby’s lack of Machine Learning libraries makes it not an ideal choice for people who are looking to make an AI model and work with Machine learning.

From where I can download Ruby on Rails for Windows & Ubuntu?

sudo apt-get install ruby rails

How to download Ruby on Rails for Mac?

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install rbenv ruby-build
echo 'if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi' >> ~/.bash_profile
source ~/.bash_profile
rbenv install 3.0.0
rbenv global 3.0.0
ruby -v
git config --global color.ui true
git config --global user.name "YOUR NAME"
git config --global user.email "[email protected]"
ssh-keygen -t rsa -C "[email protected]"
cat ~/.ssh/id_rsa.pub
ssh -T [email protected]
gem install rails -v 6.1.1
rbenv rehash
rails -v
brew install mysql
ln -sfv /usr/local/opt/mysql/*plist ~/Library/LaunchAgents
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist
rails new myapp
rails new myapp -d mysql
cd myapp
rake db:create
rails server

Conclusion

That’s all for today, I tried to cover the most Frequent questions about Ruby on Rails in this article, please feel free to comment if you have any questions.

Articles that could be useful for you

Subscribe to our mail list!

We don’t spam! Read our privacy policy for more info.