Learn

GROW YOUR SKILLSET. EVOLVE YOUR CAREER.

The Beginner's Guide to Rails Helpers

The Beginner’s Guide to Rails Helpers

Helpers in Rails are used to extract complex logic out of the view so that you can organize our code better. This article is meant to shed some light over the “How and when to use Rails Helpers”.

Mastering Ruby Blocks in Less Than 5 Minutes

Mastering Ruby Blocks in Less Than 5 Minutes

Blocks are one of the most powerful and often overlooked feature of ruby. There is something about yield that makes blocks very hard to understand at first. I’m going to talk about some of the concepts and provide a few examples so by the end of this post you’ll have a solid understanding of ruby blocks.

How to Use link_to in Rails

How to Use link_to in Rails

Even after 7 years of using Ruby on Rails I still have trouble remembering how to properly use all those options available for the link_to helper. Three out of five times I have to fire up the docs and search for the examples (cause that’s how I like to read the docs).

3 ways of testing private methods in Rails

3 ways of testing private methods in Rails

Here’s a topic that pops up often especially when faced with the common task of testing controllers in Rails. We have some logic inside a private method and we want to test it somehow. And of course, like most things in ruby, there are a few ways to do it which we’ll look at next.

How to test controllers in Rails

How to test controllers in Rails

These days it seems like everyone is looking for faster tests and for good reason since loading the entire Rails framework on every test run makes the process way to slow. I want to address the issue of testing controllers in this article as I find it to be a confusing topic even for some of the more senior rails developers.