Error deleting assets in ubiquo_media
Reported by Ramon Salvadó | March 26th, 2009 @ 12:09 PM | in 0.7 (closed)
Here is the error:
ArgumentError in Ubiquo/assets#index
Showing vendor/plugins/ubiquo_media/app/views/ubiquo/assets/_tag_filter.html.erb where line #10 raised:
invalid value for Float(): "NaN"
Extracted source (around line #10):
7:
- 8: <% link = params.merge(:filter_tag => t.name, :page => nil) %> 9: <% classActive = params[:filter_tag]==t.name ? "on" : "off" %> 10: <% classSize = ("size%.0f" % ((((t.assets.size.to_f - min)/(max-min))*3)+1).to_s) %> 11: <%= link_to t.name, link, :class => classActive + " " + classSize %> 12:
- 13: <% end %>
Trace of template inclusion: vendor/plugins/ubiquo_media/app/views/ubiquo/assets/index.html.erb
Comments and changes to this ticket
-

Ramon Salvadó March 30th, 2009 @ 10:02 AM
- → State changed from new to resolved
(from [1ea0366cb51a2af8ac32961f31698c88b36efa51]) Fixed division by zero when calculating tag size [#31 state:resolved] http://github.com/gnuine/ubiquo_...
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
Ruby on Rails based application framework.
Check the ubiquo website.
Source available from github
Ubiquo plugins can be found at http://github.com/gnuine
Check out the development master (Edge ubiquo):
gem install ubiquo
ubiquo --edge myapp
Creating or reviewing a patch
See the contributor guide.
Creating a feature request
If you want a new feature in Ubiquo it's best to implement it yourself.
Creating a bug report
When creating a bug report, be sure to include as much relevant information as possible. Post the code sample that causes the problem. Preferably, alter the unit tests and show through either changed or added tests how the expected behavior is not occuring.
People watching this ticket
- Nobody is watching this ticket.
Tags
Referenced by
-
#31 Error deleting assets in ubiquo_media
(from [1ea0366cb51a2af8ac32961f31698c88b36efa51]) Fixed d...