プロジェクト

全般

プロフィール

Vote #68401

完了

Delete time log broken after changes to REST

Admin Redmine さんが約3年前に追加. 約3年前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Time tracking_13
対象バージョン:
開始日:
2010/10/14
期日:
進捗率:

0%

予定工数:
category_id:
13
version_id:
20
issue_org_id:
6674
author_id:
21905
assigned_to_id:
5
comments:
4
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

Using a master branch - on the edge

A ActionController::MethodNotAllowed occurred in application#index:

Only get, put, and delete requests are allowed.
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/routing/recognition_optimisation.rb:64:in `recognize_path'


Request:

  • URL /time_entries/1569

journals

If this was in the "timelog" block on "My page", this diff should fix it:

<pre><code class="diff">diff --git a/app/views/my/blocks/_timelog.rhtml b/app/views/my/blocks/_timelog.rhtml
index fdff465..e373535 100644
--- a/app/views/my/blocks/_timelog.rhtml
+++ b/app/views/my/blocks/_timelog.rhtml
@@ -40,7 +40,7 @@ entries_by_day = entries.group_by(&:spent_on)
:title => l(:button_edit) %>
<%= link_to image_tag('delete.png'), {:controller => 'timelog', :action => 'destroy', :id => entry},
:confirm => l(:text_are_you_sure),
- :method => :post,
+ :method => :delete,
:title => l(:button_delete) %>
<% end -%>
</td></code></pre>

If this was not on that page, please specify where you got this error from.
--------------------------------------------------------------------------------
Thanks, I'll look into it.
--------------------------------------------------------------------------------
Thx, that helped. It does not work in timesheet plugin as well, so you might want to do the fix there as well.
--------------------------------------------------------------------------------
Fixed in r4259
--------------------------------------------------------------------------------

Admin Redmine さんが約3年前に更新

  • カテゴリTime tracking_13 にセット
  • 対象バージョン1.1.0_20 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0