Ruby programming beginners guide

We are writing this brief tutorial on how to easily get into Ruby programming language and Ruby on Rails framework, so our community can grow with new developers.

First thing first, Ruby on Rails framework is based on Ruby programming language, and the learning should start from there.

Our recommended steps:

Ubuntu installation instructions

We choose to develop on Linux OS, Ubuntu distribution. In order to install Ruby and Rails, you could follow these instruction(it might not be always up-to-date)

1.Ruby starting guide:

https://www.codecademy.com/learn/ruby

The whole session last around 8-9 hours, and it’s very nice time investment.

2.Once you learned Ruby, it’s time to move on to Rails framework.

Firstly you can just watch this basic 10min video.

https://www.youtube.com/watch?v=4nyzl3pVXp4

Going to build your first Rails app yourself. You can ignore section from 1.4, or everything related to Git and Heroku(for the moment)

http://tutorials.jumpstartlab.com/projects/blogger.html  

2nd Rails app with Rspec tests. In tutorial they use postgres as database, you can still use sqlite, and no need to configure ‘pg’.

http://tutorials.jumpstartlab.com/projects/contact_manager.html

Once you finish building this two apps, you are now up to speed on Rails basics.

More advanced stuff:

– Here is 5 day Rails tutorials. Most of them you can just read after completing previous 2 tutorials. Things that are new to you, you can practice on existing apps.

http://tutorials.jumpstartlab.com/paths/advanced_rails_five_day.html

3.Database relations

They are very important to be understood. So we are sharing two tutorials that we find easy to understand.

4.Testing

Testing our own code in Ruby on Rails is very important. Not every good developer writes it, it also leaves you out of hassle to manually click 50x on same feature over and over. You can just run test suite you wrote, and it will tell you that everything is good with you code in matter of minutes.

Our (free) tutorials of choice:

Firstly you could try with:

https://www.codeschool.com/courses/testing-with-rspec

And then

http://blog.teamtreehouse.com/an-introduction-to-rspec

To see how tests run in real world example you could watch this example

http://railscasts.com/episodes/275-how-i-test

At the end, in order to improve your testing skills you could go to

http://betterspecs.org/

Additional resources:

In order to become better rails developer, you can explore number of Open-Source apps out there written in Ruby on Rails, like:

https://github.com/diaspora/diaspora/

You have managed to learn Ruby? If you are willing to start to work on some real world apps, you could shoot us an email at http://kolosek.com/posao

Related

Details

Ruby on Rails code quality

In this article we will point out steps on what can you do in order to improve your code quality in Ruby on Ra ...