17 07, 2017

Internationalization With Ruby’s I18n Gem

By |2020-10-20T16:45:48+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 |2020-10-20T16:45:51+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 |2020-10-20T16:47:30+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 |2020-10-20T16:47:37+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 |2020-10-20T16:47:37+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 |2020-10-20T16:47:38+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 [...]

1 06, 2015

Useful Development and Debugging Tips for Ruby on Rails

By |2020-10-20T16:47:42+00:00June 1st, 2015|Categories: Coding & Development, Ruby on Rails|

Make Development Server Available To Outside RequestsProblem: You are developing an api and want to make it available to receive requests from your colleagues without pushing your changes to your Staging server.Solution: Assuming you are all on the same network, you can make machine available to receive requests by following the steps below. [...]

Load More Posts