17 07, 2017

Internationalization With Ruby’s I18n Gem

By |2018-08-10T15:17:54+00:00July 17th, 2017|Categories: Coding & Development, Ruby on Rails|Tags: , |

The Why’s of I18n Internationalization (I18n) is one of the simplest steps you can take to make your Rails code shine. I8n offers a way to extract string and localization data from a Rails app. It mainly consists of using two functions in your views I18n.translate (for strings) and I18n.localize (for date/times). They are often [...]

23 01, 2017

How To Update an iOS Project to Use rbenv for Ruby Version Management

By |2018-10-01T18:19:27+00:00January 23rd, 2017|Categories: Apple/iOS, Coding & Development, Ruby on Rails|Tags: , , |

As an iOS mobile developer, you may think you don’t need to manage Ruby versions in your project. Many iOS projects use CocoaPods which is a Ruby gem. Some projects may even use other Ruby gems such as fastlane for automating your deployment pipeline, or slather for reporting code coverage results. Here at Metova, we [...]

17 10, 2016

Rails 5 Attributes API

By |2018-09-27T15:19:45+00:00October 17th, 2016|Categories: Ruby on Rails|Tags: |

The Rails 5 attributes API is the best feature of Rails 5, but no one knows it yet. You hardly hear about it. It took me awhile to even find out how to use it.In Rails 5, model attributes go through the attributes API when they are set from user input (or any setter) and [...]

8 03, 2016

In-Depth Ruby: Modules & Include vs. Extend

By |2018-09-27T18:06:06+00:00March 8th, 2016|Categories: Coding & Development, Ruby on Rails|Tags: , |

Ruby provides a construct called a Module which is sort of like a thin Class. At first, Ruby devs might look at Modules like a “junk drawer” of code that is just thrown around and used to organize files, but there is a method to this madness. The Ruby class Class inherits from Module and [...]

23 02, 2016

Using Docker for Internal Tools & Infrastructure

By |2018-09-26T21:49:34+00:00February 23rd, 2016|Categories: Apple/iOS, Coding & Development, Ruby on Rails|Tags: , , |

Docker is a containerization solution that allows apps to run in a sandboxed environment that includes all the dependencies they will need without the additional overhead of a virtual machine. This sounds great–we can containerize our applications and deploy them, no more server provisioning and maintenance! Unfortunately, this is way more difficult than it sounds [...]

17 11, 2015

A Beginner’s Guide to Ruby Getters and Setters

By |2018-10-24T18:03:56+00:00November 17th, 2015|Categories: Coding & Development, Ruby on Rails|Tags: , |

In Ruby, getters and setters are typically defined by using the class method `attr_accessor`. Normally you see this at the top of the class and it sort of defines what properties that instances of the class will have. I feel like this method causes some confusion for Ruby beginners and it is something I had [...]

Load More Posts