This website uses cookies to better the user experience of its visitors. Where applicable, this website uses a cookie control system, allowing users to allow or disallow the use of cookies on their computer/device on their first visit to the website. This complies with recent legislative requirements for websites to obtain explicit consent from users before leaving behind or reading files such as cookies on a user’s computer/device. To learn more click Cookie Policy.

Privacy preference center

Cookies are small files saved to a user’s computer/device hard drive that track, save, and store information about the user’s interactions and website use. They allow a website, through its server, to provide users with a tailored experience within the site. Users are advised to take necessary steps within their web browser security settings to block all cookies from this website and its external serving vendors if they wish to deny the use and saving of cookies from this website to their computer’s/device’s hard drive. To learn more click Cookie Policy.

Manage consent preferences

These cookies are necessary for the website to function and cannot be switched off in our systems. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms. You can set your browser to block or alert you about these cookies, but some parts of the site will not then work. These cookies do not store any personally identifiable information.
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us to know which pages are the most and least popular and see how visitors move around the site. If you do not allow these cookies we will not know when you have visited our site, and will not be able to monitor its performance.
Cookies list
Name _rg_session
Provider rubygarage.org
Retention period 2 days
Type First party
Category Necessary
Description The website session cookie is set by the server to maintain the user's session state across different pages of the website. This cookie is essential for functionalities such as login persistence, ensuring a seamless and consistent user experience. The session cookie does not store personal data and is typically deleted when the browser is closed, enhancing privacy and security.
Name m
Provider m.stripe.com
Retention period 1 year 1 month
Type Third party
Category Necessary
Description The m cookie is set by Stripe and is used to help assess the risk associated with attempted transactions on the website. This cookie plays a critical role in fraud detection by identifying and analyzing patterns of behavior to distinguish between legitimate users and potentially fraudulent activity. It enhances the security of online transactions, ensuring that only authorized payments are processed while minimizing the risk of fraud.
Name __cf_bm
Provider .pipedrive.com
Retention period 1 hour
Type Third party
Category Necessary
Description The __cf_bm cookie is set by Cloudflare to support Cloudflare Bot Management. This cookie helps to identify and filter requests from bots, enhancing the security and performance of the website. By distinguishing between legitimate users and automated traffic, it ensures that the site remains protected from malicious bots and potential attacks. This functionality is crucial for maintaining the integrity and reliability of the site's operations.
Name _GRECAPTCHA
Provider .recaptcha.net
Retention period 6 months
Type Third party
Category Necessary
Description The _GRECAPTCHA cookie is set by Google reCAPTCHA to ensure that interactions with the website are from legitimate human users and not automated bots. This cookie helps protect forms, login pages, and other interactive elements from spam and abuse by analyzing user behavior. It is essential for the proper functioning of reCAPTCHA, providing a critical layer of security to maintain the integrity and reliability of the site's interactive features.
Name __cf_bm
Provider .calendly.com
Retention period 30 minutes
Type Third party
Category Necessary
Description The __cf_bm cookie is set by Cloudflare to distinguish between humans and bots. This cookie is beneficial for the website as it helps in making valid reports on the use of the website. By identifying and managing automated traffic, it ensures that analytics and performance metrics accurately reflect human user interactions, thereby enhancing site security and performance.
Name __cfruid
Provider .calendly.com
Retention period During session
Type Third party
Category Necessary
Description The __cfruid cookie is associated with websites using Cloudflare services. This cookie is used to identify trusted web traffic and enhance security. It helps Cloudflare manage and filter legitimate traffic from potentially harmful requests, thereby protecting the website from malicious activities such as DDoS attacks and ensuring reliable performance for genuine users.
Name OptanonConsent
Provider .calendly.com
Retention period 1 year
Type Third party
Category Necessary
Description The OptanonConsent cookie determines whether the visitor has accepted the cookie consent box, ensuring that the consent box will not be presented again upon re-entry to the site. This cookie helps maintain the user's consent preferences and compliance with privacy regulations by storing information about the categories of cookies the user has consented to and preventing unnecessary repetition of consent requests.
Name OptanonAlertBoxClosed
Provider .calendly.com
Retention period 1 year
Type Third party
Category Necessary
Description The OptanonAlertBoxClosed cookie is set after visitors have seen a cookie information notice and, in some cases, only when they actively close the notice. It ensures that the cookie consent message is not shown again to the user, enhancing the user experience by preventing repetitive notifications. This cookie helps manage user preferences and ensures compliance with privacy regulations by recording when the notice has been acknowledged.
Name referrer_user_id
Provider .calendly.com
Retention period 14 days
Type Third party
Category Necessary
Description The referrer_user_id cookie is set by Calendly to support the booking functionality on the website. This cookie helps track the source of referrals to the booking page, enabling Calendly to attribute bookings accurately and enhance the user experience by streamlining the scheduling process. It assists in managing user sessions and preferences during the booking workflow, ensuring efficient and reliable operation.
Name _calendly_session
Provider .calendly.com
Retention period 21 days
Type Third party
Category Necessary
Description The _calendly_session cookie is set by Calendly, a meeting scheduling tool, to enable the meeting scheduler to function within the website. This cookie facilitates the scheduling process by maintaining session information, allowing visitors to book meetings and add events to their calendars seamlessly. It ensures that the scheduling workflow operates smoothly, providing a consistent and reliable user experience.
Name _gat_UA-*
Provider rubygarage.org
Retention period 1 minute
Type First party
Category Analytics
Description The _gat_UA-* cookie is a pattern type cookie set by Google Analytics, where the pattern element in the name contains the unique identity number of the Google Analytics account or website it relates to. This cookie is a variation of the _gat cookie and is used to throttle the request rate, limiting the amount of data collected by Google Analytics on high traffic websites. It helps manage the volume of data recorded, ensuring efficient performance and accurate analytics reporting.
Name _ga
Provider rubygarage.org
Retention period 1 year 1 month 4 days
Type First party
Category Analytics
Description The _ga cookie is set by Google Analytics to calculate visitor, session, and campaign data for the site's analytics reports. It helps track how users interact with the website, providing insights into site usage and performance.
Name _ga_*
Provider rubygarage.org
Retention period 1 year 1 month 4 days
Type First party
Category Analytics
Description The _ga_* cookie is set by Google Analytics to store and count page views on the website. This cookie helps track the number of visits and interactions with the website, providing valuable data for performance and user behavior analysis. It belongs to the analytics category and plays a crucial role in generating detailed usage reports for site optimization.
Name _gid
Provider rubygarage.org
Retention period 1 day
Type First party
Category Analytics
Description The _gid cookie is set by Google Analytics to store information about how visitors use a website and to create an analytics report on the website's performance. This cookie collects data on visitor behavior, including pages visited, duration of the visit, and interactions with the website, helping site owners understand and improve user experience. It is part of the analytics category and typically expires after 24 hours.
Name _dc_gtm_UA-*
Provider rubygarage.org
Retention period 1 minute
Type First party
Category Analytics
Description The _dc_gtm_UA-* cookie is set by Google Analytics to help load the Google Analytics script tag via Google Tag Manager. This cookie facilitates the efficient loading of analytics tools, ensuring that data on user behavior and website performance is accurately collected and reported. It is categorized under analytics and assists in the seamless integration and functioning of Google Analytics on the website.

How to Learn Ruby on Rails

  • 147627 views
  • 11 minutes
Maryna Z.

Maryna Z.

Copywriter

Dmytro H.

Dmytro H.

Backend Development Lead

Tags:

Share

You’ve just taken your first steps in programming and you’re already facing a common problem: you just don’t know where to begin and what to learn first. However, you know what technology you want to work with: Ruby on Rails. Congratulations! You’ve decided to join a vibrant community of likeminded people.

Our RubyGarage team consists of people dedicated to the Ruby programming language, and we would like to help you in your quest to learn Rails. Follow our simple step-by-step guide and find out how to learn Ruby on Rails.

1. Ruby on Rails 101, or Master the Beginner Level

Learn CSS, HTML and JavaScript

You might wonder why CSS, HTML and JavaScript always go together. Put simply, HTML structures a website’s content (tables, blocks, images, etc.) with the help of tags. CSS then says how these website elements should be displayed. Finally, JavaScript makes a website dynamic so it can respond to clicks, create passwords or change values in form inputs.

CSS, HTML and JavaScript are the technologies you need to learn to become a front-end developer. Since Ruby on Rails is a full-stack framework that covers backend (what happens on the server) as well as front-end web development (what happens in the browser), it’s important to start with the front-end basics.

Here a few tools to help you learn the basics of front-end web development:

  • The Intro to HTML and CSS course on Udacity doesn’t follow the structure of similar courses. This Udacity course gets you thinking like a real front-end developer: you won’t focus on a language’s syntax. Instead, you’ll learn how to convert design mockups to web pages step by step. What’s more, the course includes a chapter on responsive design techniques, something rarely taught within courses about HTML/CSS.
  • The Make a Website course by Codecademy teaches you the fundamentals of CSS and HTML while you build your first website. The course is distributed for free, however, you can get additional features with a paid plan.

Learn Ruby Before Rails

Just to be clear, Ruby is a programming language, while Ruby on Rails (hint: you’ll sound more knowledgeable if you just say “Rails”) is a web application framework – a collection of pre-written code that simplifies website building. Rails extends the Ruby language and solves everyday problems so you don’t have to reinvent the wheel.

Beginner developers often wonder if they need to learn Ruby language first before moving to Ruby on Rails. We think you should. Our advice is to learn Ruby first. Of course, Rails offers great solutions out of the box; but when you face more serious issues, you’ll have to struggle with the Ruby code.

There are many ways to learn Ruby: online courses, books, video tutorials, and even mentorship programs. If you want to learn independently, you’ll probably dig into books and online courses, which are popular today. But remember: no matter how you learn Ruby, the way to succeed is to practice what you learn. A common mistake of beginners is gaining book knowledge without practicing: theory is great, but if you can’t put it into practice it’s not worth much.

We’ve picked out a few books and courses that’ll help you learn the basics of Ruby:

  • Code School. Code School is an online platform where you can master Ruby and other programming languages including HTML/CSS, JavaScript, Python, and .Net. What makes Code School stand out is their entertaining approach: every lesson has a storyline which you follow while reading short explanations, watching video tutorials and practicing coding straight in the browser. Our RubyGarage team recommends taking the free Try Ruby course. In fact, Code School courses are part of our own educational program. RubyGarage has been running Ruby/Rails courses since we launched in 2011. We implement home assignments on Code School to better immerse our mentees in Ruby/Rails technologies.
  • Learn to Program (The Facets of Ruby Series) by Chris Pine. This is the book for complete beginners at programming. From writing your first single-line program to creating a basic video game, you’re guided carefully through the learning process. Learn to Program enforces that programming can be learned only by practicing.

Learn Ruby on Rails

Once you know all about Ruby, you can finally start learning Rails! Many novice developers are wondering why learn Ruby on Rails if there are other frameworks. However, the answer is clear: this web application framework is a perfect solution for startups thanks to its extensive out-of-the-box functionality, deployment speed and scalability. Let’s see what educational platforms can help you learn Ruby on Rails online and what books you should read to master the basics of RoR.

In general, online courses for Rails all look the same and offer the same products. We’ve picked out a few platforms that we personally like:

  • Code School’s Rails for Zombies Redux courses. The playful name of this course shouldn’t fool you: you’ll learn CRUD principles, Active Record models and MVC architecture. This course is designed for those who already have some knowledge of programming, web development and Ruby. By the way – after successfully completing of this course you get a badge you can put on your CV.
  • Codecademy’s Learn Ruby on Rails course is designed for beginner programmers. Codecademy is a platform for learning skills that you can apply in real life straight after completing a course. At Codecademy you’ll learn how to build a Flipboard-like home page and how to manage versions of your code with Git among plenty of other useful skills. Codecademy lessons combine theory with an in-browser simulator to practice coding. A small tip: take notes while reading the reference material to help you retain information.

We’ve also picked up a few books that our Ruby/Rails developers love and recommend.

  • Agile Web Development with Rails 4 by Sam Ruby, David Thomas, and David Heinemeier Hansson. This is the ultimate guide to basics including Rails installation and architecture (models, views, and controllers). You’ll also learn a bit of Ruby before you create your very first storefront following the practical section of the book. Agile Web Development’s complexity increases gradually throughout the book. The Practical approach of this book is supported by story-driven chapters, iterative exercises and hand-holding narration.
  • Ruby on Rails Tutorial by Michael Hartl. Many Ruby/Rails developers admit they’ve learned Rails by simply following Michael Hartl’s Rails tutorial. The book takes you by the hand and guides you through full cycle of web development: from coding best practices to writing tests. All the chapters are tied with exercises to practice what you’ve just learned; the main project is a Twitter-like app.
how to learn Ruby on Rails

Get yourself a Ruby on Rails Mentor

Getting yourself a mentor is, probably, the best way to learn Ruby on Rails.. First, you’ll speed up your learning process by having someone beside you who can explain difficult concepts, review your code and guide you to better solutions. Second, a mentor is a source of support who won’t let you stumble on a problem or make the mentor’s previous mistakes. We at RubyGarage have developed a culture of mentorship in our teams to build closer relationships between junior and senior developers and accelerate learning.

2. Boost Your Skills: Ruby/Rails Intermediate Level

After you’ve learned the Ruby/Rails basics, you’ll probably want to go further and build more complicated applications with features like import/export of data, implementation of public/ private APIs and admin panels. Here are some resources to help you get there:

Become high-flying Rubyist

You shouldn’t underestimate the role of books in studying programming. Despite rapid development of technologies, good books on programming keep up with the times and are updated after new releases and updates. In order not to get lost in the many of books on Ruby and Rails, we’ve selected some especially good resources for you. Here are some books that contain information on extended Ruby features for the high-flying Rubyist:

  • The Well-Grounded Rubyist (Second Edition) by David A.Black. This book assumes some programming background, however, you can always research unfamiliar concepts while you read. From the first to the last page Black introduces you to an object-oriented programming approach. For more experienced developers this book serves as a valuable reference; beginner Rubyists can get a great start from learning the basics (installing Ruby) to more advanced and dynamic Ruby features.
  • The Ruby Programming Language by David Flanagan and Yukihiro Matsumoto. This book, from Ruby creator Yukihiro Matsumoto and JavaScript/Java developer David Flanagan, is a must-read. Just make sure you already have some programming experience before you start reading. This book offers no practice exercises, which may disappoint some readers. In general, this is a well-structured reference book that covers everything related to Ruby.

Practice Ruby on Rails

Practice makes perfect. At the beginning you’ll learn Ruby’s syntax and follow pre-written cases. But as you grow as a Rubyist, you need to put what you’ve learned into practice.

In order to deepen your knowledge, we recommend reading The Rails 4 Way by Obie Fernandez. This so-called “Bible” for Rails developers comes in the form of a reference book that you can refer to whenever you have any questions on a topic. Here you can find an answer to basically any question about Rails core. Readers also mark out in-depth narration and focus on practical chapters about gems and optimization of processes.

Join Ruby/Rails communities

Don’t forget that Ruby/Rails has one of the friendliest and most vibrant communities! Don’t miss the chance to join a group of people who will share insights and support you. Here are a few useful resources for you to connect with the Ruby/Rails community:

  • StackOverflow and Quora. StackOverflow is for developers of all kinds: here you can ask any question related to a software development topic and get an enthusiastic response. Quora, on the other hand, is a platform for sharing insights in various areas. On Quora you can ask technical questions as well as less complicated questions such as what programming language you should learn.
  • Ruby on Rails Link: Rails Slack community. Slack is an extremely popular messenger for teams. By joining a Slack team you can easily communicate with a whole bunch of people who are mad about Rails! Slack conversations are organized into topics that include Front-end, Coding, and Work (for those looking for a job).
  • GitHub. Join an existing project on GitHub to polish your skills, connect with others and get invaluable experience while creating real software. Even if you aren’t able to write long strings of code, you can contribute to projects by fixing or rep. If you’re interested in finding out more about GitHub and its benefits, read our article about open source projects and their role in a developer’s life.

3. Advanced Ruby/Rails - still a long way to go!

Once you've learned the fundamentals of Ruby and Rails, you still have work to do. It’s important to build your own applications to get as much experience as you can; make mistakes and learn how to fix them; and get lost in concepts and find solutions. An inspiring example is Jennifer Dewalt who has built 180 websites in 180 days: every time you think you’re about to give up, think of her incredible aspiration.

As soon as you start writing your own code, it’s important to improve your output. Pay attention to coding best practices including DRY (Don’t Repeat Yourself), KISS (Keep It Simple, Stupid), and YAGNI (You Aren’t Gonna Need It) that allow you to write maintainable code and prevent you from reinventing the wheel and adding gold plating (unnecessary extra features).

In the future you’re probably going to build web applications as a part of a team. That’s why it’s essential to learn Git – a version control system to maintain your code and save the latest versions. Git is a useful programming practice since it helps you backup changes to your code and monitor your work progress.

Conclusion

Learning how to code is challenging, even though you can find plenty of resources that are crafted with diligence and passion. We’ve shared the books and websites we personally like and would recommend for individual study. But no matter what learning method you choose, remember to put theory into practice and get support from more experienced developers. Don’t ask yourself how long to learn Ruby on Rails; just set a goal and do your best to achieve it. Good luck!

CONTENTS

Tags:

Authors:

Maryna Z.

Maryna Z.

Copywriter

Dmytro H.

Dmytro H.

Backend Development Lead

Rate this article!

Nay
So-so
Not bad
Good
Wow
33 rating, average 4.61 out of 5

Share article with

Comments (0)

There are no comments yet

Leave a comment

Subscribe via email and know it all first!