Don't use = with form_for. Use -. This is just like how you'd use <% %> in
ERB rather than <%= %>.

On Thu, Feb 18, 2010 at 8:11 PM, Steve Rowley <srow...@gmail.com> wrote:

> > Just for reference: 2.2.17 will work for Rails 2.3.5, 2.2.19 will work
> > for Rails 3.0 beta, and 2.2.20 which I'll release this weekend will
> > work with both.
>
> On Rails 3.0 beta with 2.2.19 and 2.2.20 I get the form rendered once
> as you'd expect, then the escaped html rendered _again_ as plain text
> right after it. I assume I'm just doing something wrong, but it's a
> really simple form (just playing around, aping the scaffolding code):
>
> =form_for(@post) do |f|
>  = f.error_messages
>  .field
>    = f.label :title
>    %br
>    = f.text_field :title
>
>  .field
>    = f.label :body
>    %br
>    = f.text_area :body
>
>  .actions
>    = f.submit
>
> Just checking to make sure this isn't a Haml problem and I can go back
> to banging my head against the wall.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Haml" group.
> To post to this group, send email to h...@googlegroups.com.
> To unsubscribe from this group, send email to
> haml+unsubscr...@googlegroups.com <haml%2bunsubscr...@googlegroups.com>.
> For more options, visit this group at
> http://groups.google.com/group/haml?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Haml" group.
To post to this group, send email to h...@googlegroups.com.
To unsubscribe from this group, send email to haml+unsubscr...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/haml?hl=en.

Reply via email to