On Fri, Jan 30, 2009 at 7:51 AM, [email protected]
<[email protected]> wrote:
>
> Hi Steve,
>
> Thanks for this comment , now I stumbled upoon another little problem
> that icon_path is not defined.
> Do you set it up somewhere?
>
You may have to modify it a bit, I just pulled this from another app:
def icon_path person = nil, size = :small
default = "/images/unassigned_avatar.png"
return default if person.blank?
return "/images/default_avatar.png" if person.icon.blank?
x = url_for_image_column(person, :icon, size) rescue default
x.blank? ? default : x
end
cheers,
steven bristol
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Lovd by Less" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/lovdbyless?hl=en
Who loves ya baby?
-~----------~----~----~----~------~----~------~--~---