Thanks! Still not sure how I managed to read the docs x2 without
noticing this and that it changed with Rail 3.x. Probably just got to
get more sleep...

On Nov 29, 12:26 am, Pietro Giorgianni <giorg...@gmail.com> wrote:
> 2011/11/29 ayupmeduck <brod.just...@googlemail.com>:
>
> > This one seems so strange that I'm sure I must be overlooking
> > something. I have always used form_tag like this:
>
> > - form_tag "/" do
> >  = text_field_tag 'something'
>
> > But now with Rails 3.1 this does not render the block, so to make it
> > work I need to do this
>
> > = form_tag "/" do
> >  = text_field_tag 'something"
>
> > Tried this with various versions including the haml 3.1.4 gem. Why my
> > brain fade?
>
> Hi,
>
> this has nothing to do with haml; if you use erb, you'll need to use
> the <%= form_tag ... %> syntax, as you can see in the official
> documentation:http://api.rubyonrails.org/classes/ActionView/Helpers/FormTagHelper.h...
>
> This is far from a recent change.
>
> pietro

-- 
You received this message because you are subscribed to the Google Groups 
"Haml" group.
To post to this group, send email to haml@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