Created
December 30, 2010 04:30
-
-
Save billsaysthis/759459 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Code below generates this error | |
# undefined method `value' for "members/fenwick1.gif":String | |
# for line ih = ... | |
module ApplicationHelper | |
def member_image_link(member) | |
return if member.logo.blank? | |
ih = image_height(member.m_logo) | |
ihv = ih.length-2 | |
ic = (ih[0..ihv].to_i > 115) ? 'logoHT' : 'logoWD' | |
link_to image_tag(member.m_logo, :alt => member.name), member.url, :class => ic | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment