Friendship system

I am trying to create a friendship system like facebook. However the tutorial i am following his from railsspace book and his according to ruby old. The issue i am currently having his a helper function which would technically help me define the relationship among the user. Now my model and controller aren't called the same name per say, and does bring confusion, but i am only trying it at the moment for testing purpose

Here my Model class Friendship < ActiveRecord::Base

  belongs_to :customer   belongs_to :friend, :class_name => 'Customer', :foreign_key => 'friend_id'

  # approved has the following fields

You have a end that is not used! You should look any extra code in your view