in my index
<%= textile_editor_initialize -%>
rjs
page.insert_html :bottom, :eform, :partial => ‘note_edit_form’
edit form
<% form_tag :action => ‘update’, :id => @note do%>
Title
<%= text_field 'note', 'title' %>
Note
<%= textile_editor 'note', 'note' -%>
<%= textile_editor_initialize -%>
<%= submit_tag ‘Save’ %> — <%= link_to ‘Cancel?’, { :action => ‘index’
}, :method => “post” %>
<% end %>
###############
try {
new Insertion.Bottom(“eform”, “\n\n\n\n\n\n\t\n\t\n\t\n\t\n \n\n <form
action=”/account/update/17-test-title
" method=“post”>\n\n\t
<label
for=“howto_title”>Title
\n\t<input id=“note_title”
name=“note[title]” size=“30” type=“text” value=“test title”
/>
\n\n\n\n\n\t
<label for
=“howto_howto”>Note
\n\n\t<textarea cols=“40”
id=“note_note” name=“note[note]” rows
=“20”>test note
\n\t<link
href="/stylesheets/textile-editor.css?1181957714" media=
“screen” rel=“Stylesheet” type=“text/css” />\n<script
src="/javascripts/textile-editor.js?1181957714
" type=“text/javascript”>\n<script
type=“text/javascript”>\nEvent.observe(window, ‘load’
, function() {\nTextileEditor.initialize(‘note_note’,
‘extended’);\n});\n\t\n\t\t\n\n\t<input
name=“commit” type=“submit” value=“Save” /> — <a
href="/account" onclick="var f = document
.createElement(‘form’); f.style.display = ‘none’;
this.parentNode.appendChild(f); f.method = ‘POST’;
f.action = this.href;var m = document.createElement(‘input’);
m.setAttribute(‘type’, ‘hidden’); m.setAttribute
(‘name’, ‘_method’); m.setAttribute(‘value’, ‘post’);
f.appendChild(m);f.submit();return false;">Cancel
?\n\n\t\n\n");
new Effect.Highlight(“note”,{duration:0.5});
new Effect.Appear(“note”,{duration:0.5});
} catch (e) { alert(‘RJS error:\n\n’ + e.toString()); alert('new
Insertion.Bottom(“eform”, "\n\n
\n\n\n\n\t\n\t\n\t\n\t\n \n\n <form
action=\"/account/update/17-test-title\" method
=\“post\”>\n\n\t
<label
for=\“howto_title\”>Title
\n\t<input id=\"note_title
\" name=\“note[title]\” size=\“30\” type=\“text\”
value=\“test title\” />
\n\n
\n\n\n\t
<label
for=\“howto_howto\”>Note
\n\n\t<textarea
cols=\“40\” id
=\“note_note\” name=\“note[note]\” rows=\“20\”>test
note
\n\t<link href=
\"/stylesheets/textile-editor.css?1181957714\" media=\“screen\”
rel=\“Stylesheet\” type=
\“text/css\” />\n<script
src=\"/javascripts/textile-editor.js?1181957714\"
type=\"text/javascript
\">\n<script
type=\“text/javascript\”>\nEvent.observe(window, ‘load’,
function()
{\nTextileEditor.initialize(‘note_note’,
‘extended’);\n});\n\t\n\t\t\n\n\t<input
name=\“commit\” type=\“submit\” value=\“Save\” /> — <a
href=\"/account\" onclick=
\"var f = document.createElement(‘form’); f.style.display =
‘none’; this.parentNode.appendChild
(f); f.method = ‘POST’; f.action = this.href;var m =
document.createElement(‘input’); m.setAttribute
(‘type’, ‘hidden’); m.setAttribute(‘name’, ‘_method’);
m.setAttribute(‘value’, ‘post’); f
.appendChild(m);f.submit();return
false;\">Cancel?\n\n\t\n\n");\nnew Effect.Highlight
(“note”,{duration:0.5});\nnew
Effect.Appear(“note”,{duration:0.5});’); throw e }