Ruby on Rails tutorials

Helpful links for RoR developer
30 May 2017   5399

Even experienced specialist can face difficulties with new tasks. Programming languages are rapidly growing systems and Ruby\Ruby on Rails isn’t exception. In this article, we’ve collected materials, that will help skilled developers learn more about Ruby and Ruby on Rails in much easier and comfortable way.

Ruby

A dynamic, open source programming language with a focus on simplicity and productivity.

 

Ruby on Rails

Ruby on Rails (RoR) - a framework written in the Ruby programming language.

Let's take a good look on the best Ruby on Rails tutorials and Ruby on Rails guides.

Ruby on Rails Tutorial by Michael Hartl

Ruby on Rails Tutorial by Michael Hartl
Ruby on Rails Tutorial by Michael Hartl

This book will fit for beginners and for experienced specialists as well. Very convenient navigation, easy to read material, tons of examples make it a deskbook for every Ruby\RoR developer. Russian version can be found here.

Ruby on Rails Guides

Ruby on Rails GuidesRuby on Rails Guides interface

Real web encyclopedia for Ruby on Rails developers. Materials are well structured, examples are available for every part, comfy website navigation. Russian version available here.

Official Ruby Website

Official Ruby websiteOfficial Ruby website

This knowledge database is operated by members of Ruby community. One of the biggest Ruby’s sources of different Ruby on Rails documentation, FAQs, gems and other related downloads. Great resource and one of main websites for every Ruby\RoR programmer. Russian version available here.

Coderwall Section

Ruby Development Tips at Coderwall SectionRuby Development Tips at Coderwall Section

Ruby has section at Coderwall where you can find “few Ruby tips you probably didn't know about but wish you did” how authors claim about it. It contains tons of very sophisticated “tips” written by developers for developers. Will help skilled programmers to share or find solution for Ruby\RoR developing process issues.

Tutorials Point Section

Ruby on Rails Tutorial at Tutorialspoint
Ruby on Rails Tutorial at Tutorialspoint

Also, Ruby has section at popular online guides library Tutorials Point. It has a lot of good structured, composed material for skilled developers and beginners as well.

Book "Demystifying Rails"

Demystifying Rails
Demystifying Rails

New Rails book, written for the skilled coders. See our article for more information.

Most helpful tutorial for you?

Ruby on Rails is on of the most popular frameworks for programming language. Ruby on Rails developers are always in demand. There are giant amount of available tutorials for coders of any experience level. We have collected the best tutorials for developers of any skill level. What Ruby on Rails tutorial was the most helpful for you? 

Ruby on Rails Guides
42% (5 votes)
Ruby on Rails Tutorial by Michael Hartl
33% (4 votes)
Coderwall Section
17% (2 votes)
Official Ruby Website
8% (1 vote)
Tutorials Point Section
0% (0 votes)
Total votes: 12

DateTime, Timestamp, Time and Date in Rails

Learn about key differenece between DateTime, Timestamp, Time and Date in Rails
31 October 2017   612

The difference between different date/time formats in ActiveRecord have little to do with Rails and everything to do with whatever database you're using.

Using MySQL as an example (if for no other reason because it's most popular), you have DATEDATETIMETIME and TIMESTAMP column data types; just as you have CHARVARCHARFLOATand INTEGER.

So, main differences: DATE only stores a date, TIME only stores a time of day, while DATETIME stores both.

The difference between DATETIME and TIMESTAMP is a bit more subtle: DATETIME is formatted as YYYY-MM-DD HH:MM:SS. Valid ranges go from the year 1000 to the year 9999 and everything in between. While TIMESTAMP looks similar when you fetch it from the database, it's really a just a front for a unix timestamp. Its valid range goes from 1970 to 2038. The difference here, aside from the various built-in functions within the database engine, is storage space. Because DATETIMEstores every digit in the year, month day, hour, minute and second, it uses up a total of 8 bytes. As TIMESTAMP only stores the number of seconds since 1970-01-01, it uses 4 bytes.

You can read more about the differences between time formats in MySQL here.

In the end, it comes down to what you need your date/time column to do. Do you need to store dates and times before 1970 or after 2038? Use DATETIME. Do you need to worry about database size and you're within that timerange? Use TIMESTAMP. Do you only need to store a date? Use DATE. Do you only need to store a time? Use TIME.

Having said all of this, Rails actually makes some of these decisions for you. Both :timestamp and :datetime will default to DATETIME, while :date and :time corresponds to DATE and TIME, respectively.