Archive for October, 2020
 
 
 
Ruby on Rails
 
sidebar-300x195
sidebar-300x195
sidebar-300x195

Use Template Inheritance to Create Dynamic Sidebars

A pretty standard problem that web developers have to face is about creating a dynamic sidebar in their application layouts. There are many different ways to achieve that effect, but most of them require some sort of repeatable...
 
Ruby on Rails
 
GaryNull_AlbumArt1-300x300
GaryNull_AlbumArt1-300x300
GaryNull_AlbumArt1-300x300

Use the Rails Try Method to Get an Attribute if Object is not nil

This is a very simple and powerful technique that many Rails programmers are not aware of. Thus, most people tend to use a more verbal form of an expression that can be formed in a much better and concise manner. It’s qui...

 
Ruby on Rails
 
RestTime-Logo1-300x272
RestTime-Logo1-300x272
RestTime-Logo1-300x272

Why Should Your Controllers be RESTful ?

For most people that are non professionals and are starting with Rails, it’s most probable that they have never heard of or used REST before. I don’t want to go into too much theory, because you can find this anywhe...
 
Ruby on Rails
 
xen2-09puzzle1-300x225
xen2-09puzzle1-300x225
xen2-09puzzle1-300x225

How to Create a Module in Rails and When to Do it

Apart from classes, modules are a very important part of casual ruby programming. The same is true for Ruby on Rails. If you know how to use them, modules can really make your programming better and DRYer. Simply put, a module ...
 
Ruby on Rails
 
organize-files-241x300
organize-files-241x300
organize-files-241x300

Your First Rails 3 Application : How to Create, Organize and Proceed

I decided to create a tutorial for Rails newcomers, that will hopefully help you with making your first steps with a new Rails 3 project. It may seem a bit intimidating at first, but it really is not that hard. Notice that i wi...

 
Ruby on Rails
 
Paper_Filters-300x300
Paper_Filters-300x300
Paper_Filters-300x300

How to Use Model Filters and Keep Your Controllers Clean

Rails is all about best practices. Doing things correctly has a vast effect on various aspects of your applications. One of the things that you really need to utilize, is the incredible power of model filters. They are a great ...