Harm Aa wrote:> Hi all,
> This used to work in Rails 1.1:
> <%= image_tag(''blue.jpg'', :size => "#{count /
total * max_length}x9") %>
> However now in 1.2 it seems broken. This expression yield an unresize
> 1x1 blue pixel.
> What am I doing wrong? All the variables used exist...
>
> Harm
As tradition dictates, it suddenly hit me. Count and total where
integers... And got rounded down to zero... Right, fixed it. Thanks you
all for your attention, I''m going to be embarrassed now.
Harm
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---