Seems like I have to do the following to get it to work:
~ text_area_tag("user[profile_info]", @user.profile_info, :class =>
"selectable_txt_field medium_txt_field", :cols =>
'40', :rows => '7')
On Jan 8, 6:19 am, "Fredrik Bränström" <[EMAIL PROTECTED]> wrote:
> May have misunderstood something...
>
> I have this in an edit form:
>
> = find_and_preserve do
> %textarea{ :name => "user[profile_info]", :class =>
> "selectable_txt_field medium_txt_field", :cols => '40', :rows => '7'}
> = @user.profile_info
>
> which should render the textarea with preserved whitespace, right? But
> it's indented in the resulting HTML.
>
> <textarea class="selectable_txt_field
> medium_txt_field" cols="40" name="user[profile_info]" rows="7">
> Nick
> 1.84 m
> +/- 80 KG :O
> Blabla
> </textarea>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Haml" 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/haml?hl=en
-~----------~----~----~----~------~----~------~--~---