Hi, its me my friends again xD I found a way to avoid this:
Just put this in your model and only allow you to put two digits
validates_format_of :precio, :with => /\A[0-9]{1,5}\.[0-9]
{1,2}\Z/, :message => ""
And that its all, with this youll protect your entry!
But i wanna make you a question, when i create a new product, show me
the form in this way:
http://iv.pl/images/22479882399157246944.jpg
And want to know if there is some way in which I can show the form
vertically and not horizontally?
because in this way it, will look more professional and more ordered!
hope it can be changed!
--
You received this message because you are subscribed to the Google Groups
"ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/activescaffold?hl=en.