search for: brewpoo

Displaying 2 results from an estimated 2 matches for "brewpoo".

2007 Dec 31
2
Conditional Float Precision
I''m trying to figure out the best way (and hopefully leanest) to conditionally have precision to a float number. Here''s what I''m doing... I have a float (which has a default precision of 1) so like 250.0 What I want to do is have the precision go to 0 if the value after the . is 0 = so 250.0 would show as 250, but 250.5 would show 250.5. Thoughts? Thanks.
2008 Jan 26
2
empty Model creates DangerousAttributeError and connection is defined by ActiveRecord
Dear list, The following situation drives me crazy. I have one model called AlumniMember and one AlumniData. Both filled with code. I developed both on Rails 1.2.3. Now I update the App to Rails 2.0.2. Now the following happens, always when I call AlumniData.new I get the DangerousAttributeError. First I cleaned out the Model, the only line I left is "has_one :alumni_member". Same