Date and Time in Ruby

First post of the new year, so I think it would be good to revisit one of the most commonly used classes in Ruby, the Date and Time classes.

DATE

The Date class in Ruby does not have any concept of any variables relating to time (Hour, Minutes, Seconds). Simply put, it will only show the Year, Month, and Day values of any given date. To use the date class we simply use require ‘date’. Continue reading

Automating Deployment in Rails

As you would’ve guessed, this post involves us having to configure our deployment via Capistrano.

Yesterday, I did a gist of the whole process it took me to have it completed. The whole solution assumes the use of the following resources:

  • Rails 4.2.1
  • Capistrano 3.4
  • MySQL 5.6
  • Unicorn 4.9
  • Nginx
  • Ubuntu 14.04 x64 (Hosted on Digital Ocean)

Continue reading

Learning To Code: What To Focus On

Programming and software development is so popular these days that it is not uncommon to see even professionals from other industries learning how to code. Coding isn’t just for the super geeks anymore. This is good. This means that the society is aware of the advancements in the field that it sparks interest within them. With the advent of web and mobile technologies, we can expect this population to grow even further.

 

Continue reading

Rails 4.2.4 and 4.1.13 have been released

Last September 1st, the latest version of Ruby on Rails 4.2.4 and 4.1.13 has finally been released.

This release includes quite a few bug fixes across multiple gems. Notable fixes such as in 4.1.13 ActiveRecord to not define autosave association callbacks twice from accept_nested_attributes_for. Rails 4.2.4 has more fixes included, one also in ActiveRecord that if the through class has default scopes, it should skip the statement cache for the model. There is also a fix in ActiveSupport that causes a SystemStackError when encoding an Enumerable with json gem while having the ActiveSupport JSON encoder loaded at the same time. Visit the change log for each gem to view the fixes applied to this release.

Do note that there are no changes regarding any security fixes which means upgrading to these versions are optimal but not critical. These are solid updates on the code before Rails 5 is released this year in which I am really excited to finally get my hands on.

Hello world!

If you are like me that always feel the need to learn new things about the latest trends on information technology and web development in general, you came to the right place.

In this site, I will try to provide updates and clarity on those tidbits of data and make structure to the volume information we get. For the meantime, have a look at my portfolio site.