[Rails] Rails 3 and saving decimal values from a form
I have an odd bug in one of my applications. When I am using the
sqlite3 database the bug is not present. However when I use mysql2 as
the database adapter I run into an error saving decimal values from a
form. If I submit the value 19.99 my input after the decimal is
removed and it is stored in the database as 19.00
What would cause this? The database has the correct settings for the
column and I can create a correct record using the rails console.
--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home