Topic: Multiple relation with same model
hi im naveed from pakistan.i am new to rails,and this issue in my project
i have two models "User" and "Assets",Asset can be created by a user and assets can be assigned to one user.so there are two
relation of user with assets(am i right??)
model are below
class Asset < ActiveRecord::Base
belongs_to :assigned_to ,:class_name=>'User'
belongs_to :creator ,:class_name=>'User'
and here is user model
class Usre < ActiveRecord::Base''
now in asset show.html.erb i can get name of creator name by
but can't get assigned to name with
what is problem??