On Viernes, 9 de Abril de 2010 20:07:35 Soren Christensen escribió:
> Hi,
>
> I have an AS based controller. In some of the Text fields in the
> controller I have YAML formatted strings holding the selection values
> from some checkboxes. The YAML is generated from a Formtastic based
> frontend.
> The fields are not based on an a AR association so AS does not
> 'understand' what is in the fields.
>
> If I edit the record and edit a NON-YAML field AS will destroy the \n
> characters on the YAML data and thereby render it useless. The standard
> YAML parser will fail to read it in if if does not contain the \n.
>
> AS should never alter the format of the YAML fields!
>
> Is there a way I can prevent AS from destroying the format of those fields.

I'm not sure I have understood you, field is render as a text input instead of 
a textarea? You can set form_ui to :textarea

>
> /S

-- 
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.

Reply via email to