On Martes, 16 de Marzo de 2010 18:43:12 Head777 escribió:
> 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?
In the subform controller (ProvidersController or ProveedoresController, I
don't know your controller name) set:
config.subform.layout = :vertical
>
> because in this way it, will look more professional and more ordered!
>
> hope it can be changed!
--
Sergio Cambra .:: entreCables S.L. ::.
Mariana Pineda 23, 50.018 Zaragoza
T) 902 021 404 F) 976 52 98 07 E) [email protected]
--
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.