Relationships In Partials

Shouldn't your partial use this code:

<%= feature.feature_type.name %>

instead of

<%= @features.feature_type.name %>

@features (if it's even available in the partial, don't think it is but i'm not sure without testing it) is an array. @features.feature_type is wrong. When you are testing it in the console, you are referencing features.first, which is fine.