Apply now

Rails Doctrine

Learn about Ruby on Rails and the history around this powerful open source framework.

Rails Doctrine
Share article
Ruby on Rails (or Rails), is an open source framework aimed at fast tracking web development projects. Like Ruby, Rails was made to maximise developer happiness and productivity, which is highlighted through their core principle of “Convention over configuration”. To put it simply, Rails allows you to quickly start the development of your application and design your web pages, without the laborious process of setting up and connecting all the files together.

Le Wagon teaches Ruby as a programming language and at the end of the program the students build their own web application using the Ruby on Rails framework. Thanks to Rails they manage to build complex applications in just 10 days.

History


Rails was created in 2003 by DHH, while working at Basecamp. At the time, Basecamp was a web agency in the US called 37 signals. They realised that a lot of their projects had similar needs. That's when DHH thought of putting all the common behaviour into a framework so developers wouldn't need to repeat the same process every time. Essentially a web application boilerplate.

It was initially used internally to deliver faster projects. It was then extracted and officially released as open source code in 2004.

The release to open source contributors is one of the reasons why the framework is so popular today. With more than 5000 contributors to date, Rails keeps getting better.

Here's a brief history of the major releases of Rails

1.0 December 13, 2005
1.2 January 19, 2007

2.0 December 7, 2007
2.1 June 1, 2008
2.2 November 21, 2008
2.3 March 16, 2009

3.0 August 29, 2010
3.1 August 31, 2011
3.2 January 20, 2012

4.0 June 25, 2013
4.1 April 8, 2014
4.2 December 19, 2014

5.0 June 30, 2016
5.1 April 27, 2017
5.2 April 9, 2018

6.0 August 16, 2019

Doctrine


The Rails Doctrine is a must read for all developers using the framework. It summarises the principles behind the framework.

The first three are especially important for our students to know:

This is why DHH chose Ruby as a programming language and not PHP, even though it was more popular for web development than Ruby back then. Ruby is also built to make developers happy and enjoy the coding process. It's for the same reason that we chose Ruby as a first programming language to learn for our students.

Instead of having to spend hours setting up the projects and all the files together, if you follow the Rails convention, your files will be connected without you having to do anything. This allows the developer to work on the "interesting" aspect of the web application without worrying about the boring configuration process.

In a restaurant you often lose a lot of time looking at the menu and studying everything on there. Most of the time, you're better off asking the chef what he recommends. Rails follows the same principle. When developing apps you could spend hours researching and debating which tools to use. Rails have done all the legwork for you, and if they chose this technology, you should trust that it is indeed the best one. This is especially important for junior developers, as the large number of tools available can be extremely daunting. However with Rails you can stick to, and trust, what you're given.

Gems


Although Rails has managed to build a really strong community, Ruby has an even stronger one! Lots of gems are available to fast track or help with development even further. All the gems can be found on RubyGems.

Another useful website is Ruby Libhunt, which is a collection of popular gems that are continuously maintained and improved.

Choosing a good gem for a project can be a complicated task. So here's what you should ask yourself when selecting a gem:

Finally if you're still not sure which gems to use, feel free to ask one of your teachers at the bootcamp.

Want to know more about Le Wagon's bootcamps?
Keep reading

Artistic Data Science - AI Sings

Are we ready for our first robot performer fan-club? Read on and see for yourself!

Graduate stories

From Corporate Law at Cambridge to Legal Tech

I will always be grateful for the amazing privilege I had to study at Cambridge. The University provides a very special environment for learning, and I was inspired to be lectured and tutored by some of the most brilliant minds in my field. I was keen to build on this and equip myself with technical & creative skills...so I embarked on Le Wagon and I'm now a Product Manager for legal tech startup Lexoo.

News

You are invited to our Demo Day!

Do you want to enjoy a party in Shenzhen? Do you want to get in touch with awesome people? Come join us with our biggest event of the year! We have Music, Food, Dancing and of course the excellent product of our students! Can't wait to share those intelligent products with you!

Are you ready to learn coding?

We are in 39 cities worldwide.