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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<link href="/stylesheets/sharedScreen.css"
rel="stylesheet"
type="text/css">
<title>test site</title>
</head>
<body>
<div id="main">
<%= @content_for_layout %>
</div>
<!-- START_HIGHLIGHT -->
<%= javascript_include_tag :defaults %>
<!-- END_HIGHLIGHT -->
</body>
</html>
and in the demo.rhtml file
<form id="daily_notes" action=""
method="post">
<table>
<tr><td>Mon </td>
<td><%= text_field("noteExpanded",
"monday",:value => "")
%></td></tr>
<tr><td>Tue </td>
<td><%= text_field("noteExpanded", "tuesday",
:value => "")
%></td></tr>
<tr><td>Wed </td>
<td><%= text_field("noteExpanded", "wednesday",
:value => "")
%></td></tr>
<tr><td>Thu </td>
<td><%= text_field("noteExpanded", "thursday",
:value => "")
%></td></tr>
<tr><td>Fri </td>
<td><%= text_field("noteExpanded", "friday",
:value => "")
%></td></tr>
</table>
</form>
<%= observe_form "daily_notes", :frequency => 2.0,
:url => {:controller => ''assignments'', :action =>
''saveNotes''},
:update => ""
%>
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---