Observer not working

I’m trying to observer a field (or form as in my example) and keep
getting a ‘Form is not defined’ error. Near as I can tell everything is
in place

In the layout file, I’ve got the default javascript files as one post
mentioned they forgot

test site
<%= @content_for_layout %>
<%= javascript_include_tag :defaults %>

and in the demo.rhtml file

Mon <%= text_field("noteExpanded", "monday",:value => "") %>
Tue <%= text_field("noteExpanded", "tuesday", :value => "") %>
Wed <%= text_field("noteExpanded", "wednesday", :value => "") %>
Thu <%= text_field("noteExpanded", "thursday", :value => "") %>
Fri <%= text_field("noteExpanded", "friday", :value => "") %>

<%= observe_form “daily_notes”, :frequency => 2.0,
:url => {:controller => ‘assignments’, :action => ‘saveNotes’},
:update => “”
%>

I’ve been playing around and have got the following code will work in a
specific scenario, but other attempts just fail.

<%= observe_field "test1", :frequency => 2.0, :url => {:controller => 'assignments', :action => 'test'}, :update => "" %>

If I drop that into a page, it fails, if I have it as a partial and have
the page include it on load, it also fails.

BUT if I have it as a partial, have a link that calls back to the
controller and does a
page.insert_html :bottom, “main”, :partial => ‘/assignments/testNote’

then it works. Anyone have any idea why it only works in such a limited
fashion? I