mirror of
https://github.com/TracksApp/tracks.git
synced 2026-03-01 10:30:15 +01:00
fix failing tests after previous refactoring.
This commit is contained in:
parent
879fbc99e2
commit
51106d015e
6 changed files with 38 additions and 24 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue