fix failing tests after previous refactoring.

This commit is contained in:
Reinier Balt 2010-11-26 10:44:08 +01:00
parent 879fbc99e2
commit 51106d015e
6 changed files with 38 additions and 24 deletions

View file

@ -1,8 +1,12 @@
<% submit_text ||= t('common.update') -%>
<% form_for(note_edit_form, :html => {
<%
submit_text ||= t('common.update')
# :put for edit note and :post for new note
form_method ||= :put
form_for(note_edit_form, :html => {
:id => dom_id(note_edit_form, 'edit_form'),
:class => "inline-form edit-note-form",
:method => :put }) do |f|
:method => form_method }) do |f|
-%>
<div id="error_status"><%= error_messages_for("note") %></div>