I have the problem with this code:

  #search-section
      = form_tag(:controller => 'grants', :action => 'search', :method
=> 'get')
        = text_field_tag :search, params[:search], :id =>
'search_field'
        = submit_tag "Search", :name => nil
        = link_to_function "Clear", "$('search_field').clear()"


    #video
      #title  
      #example
      #controls

I get this error:

Illegal nesting: nesting within plain text is illegal.
Extracted source (around line #49):

46: 4       = link_to_function "Clear", "$('search_field').clear()"
47: 5
48:
49:     #video
50:       #title  
51:       #example
52:       #controls

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

Reply via email to