www.SmarteGuru.com
  Home | Blogs | Recipe | Find a Friend | Discussion Board | Resources | Developers Area | Articles | Health |  Login | Register Now 

Posts Tagged ‘undefined method’

Why do I get “undefined method ’size’ for Float” warnings?

Monday, October 6th, 2008

Are you using AJAX? Maybe an in-place text editor? Or one of those fancy “click the star to rate this” jobbers? Or see result of arithmetic calculation. It was that latter case for me.

@tatal_payable = (@total_event_payable.to_f – @coupon.value.to_f)
render_text @tatal_payable and return

where the @tatal_payable was a Float. Rails gave this strange error message: (more…)

Home - About Us - Help - Terms and Conditions - Site Map - Link to Us - Resources - Contact Us
Google Rank Calculator | Suggest developer resource | Suggest Article
All rights reserved © 2007 SmarteGuru.com.