Ruby on Rails
 
 
 
Ruby on Rails
 
the-flash-300x225
the-flash-300x225
the-flash-300x225

Handle Flash Messages And Redirects In Your Controllers

Rails is all about following the best practices. If you are just starting out, the path is pretty long. I’ve been studying Rails for many months and, to tell you the truth, i learn many new things every day. Rails is not ...
 
Ruby on Rails
 
seeds-300x225
seeds-300x225
seeds-300x225

Seeding Your Database With Style

One of the biggest problems that i always had when i was creating new Rails projects is the need for a versatile way to seed my database. There are various gems that make this procedure rather easy, but they tend to create repe...

 
Ruby on Rails
 
network_security-300x225
network_security-300x225
network_security-300x225

Understanding attr_accessible – Secure Your Rails Application

If you are just starting with Ruby on Rails, chances are that you are using the Devise gem as your authentication system. It’s rather easy to setup and will do just fine for basic authentication needs. Of course, as time ...
 
Ruby on Rails
 
novell-suse-linux-elliott-associates-288x300
novell-suse-linux-elliott-associates-288x300
novell-suse-linux-elliott-associates-288x300

Rails Associations Part 1 : Understand the internals of Rails Associations and how has_one works

One of the first frustrations that virtually every new Rails programmer has is Rails associations system. Since most people that come into Rails were most probably previous PHP users, chances are that they have not used a simil...
 
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...