On Sun, May 15, 2011 at 1:52 PM, Fernando Perez <li...@ruby-forum.com>wrote:

> > What would cause this? The database has the correct settings for the
> > column and I can create a correct record using the rails console.
>
> The only column type that works is "decimal" is that your case?
>
> And gimme a link to your app so that I'll make it crash by inputting
> decimal values that have a comma ;)
>
> I had to go through this pain for my http://suivauto.com website that
> uses the French "," instead of the "." for decimal points.
>

To be sure, in your migration you have the precision and scale for the
column?

t.decimal  "amount",            :precision => 10, :scale => 2


>
> --
> 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@googlegroups.com.
> To unsubscribe from this group, send email to
> rubyonrails-talk+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to