I'm surprised that compiles at all... is #nav_search really nested
beneath "= link_to"? Because that should add an extra "end" that would
break the whole thing.
Jesse wrote:
> Haml:
>
>
> #nav
> = link_to image_tag('nutrograph-alpha.png'), root_path
> #nav_search
> - form_tag root_path, :method => 'get' do
> = text_field_tag 'search', params[:search]
> = submit_tag 'Search Foods', { :name => nil }
>
> Source puts <form> tag all the way on the left of the page. And I get
> a validation error:
>
> http://validator.w3.org/check?uri=http%3A%2F%2Fnutrograph.com&charset=(detect+automatically)&doctype=Inline&group=0
>
> 2 errors for the form, and 2 for javascript that are equally
> puzzling. Please help.
>
>
> >
>
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---