Today I would like to share with you some methods I have learned in Ruby. They are very cool and help a lot in resolving complex problems. #map and #map! #map and #map! transform elements of an array. In my example, it iterates over each element of my_array and multiplies it by 2 and returns a … Continue reading Find and collect map, select, inject and zip – useful Ruby methods
Today I learned something really usefull. I learned that validations of models in Ruby on Rails is no 'magick', as I used to think. Thanks to Andrzej Krzywda from Arkency I learned how this all works and where this all comes from. First, I visited rails'es github and took a look at the actual rails … Continue reading Unveiling ‘magick’ of Ruby on Rails validations
Today I wrote a program that calculates when someone has lived 10*9 seconds. For me it was 12-12-2014 01:46:40 🙂
How to deploy a Rails app to Heroku? I started off the first week by creating a simple 'Hello World' application and deploying it to Git. Another thing I wanted to learn was to deploy an application to production so everyone can actually see it in the itnernet. I wanted to learn how to deploy … Continue reading How to deploy a Rails app to Heroku?