プロジェクト

全般

プロフィール

Vote #69964

未完了

Redirect to self (action) in MyController

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

ステータス:
Reopend
優先度:
通常
担当者:
-
カテゴリ:
Code cleanup/refactoring_30
対象バージョン:
-
開始日:
2011/05/23
期日:
進捗率:

0%

予定工数:
category_id:
30
version_id:
0
issue_org_id:
8423
author_id:
16879
assigned_to_id:
0
comments:
7
status_id:
8
tracker_id:
2
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Reopend]

説明

Is there any reason for redirecting to :action => 'acount' (the same action) on successful save in MyController's account action?..

I'm adding fields to users form (including one in my contoller) from my plugin. Saving fields with after_filter... When format of fields is invalid due to redirect original form data get lost.

P.S. Do not want to alias account method to avoid conflicts...


journals

Redirection to :action => 'account' seems logical to me, what would you expect ?

Try using @after_save@ filter in @User@ instead of using a controller @after_filter@ filter ?
--------------------------------------------------------------------------------
You should ask your question in Devlopment forum, this tracker is for bugs or feature requests only.
--------------------------------------------------------------------------------
Without @redirect_to@ it would render @account.rhtml@ that is actually do the same: I wonder why @redirect_to@... I expect just rendering @account@...
--------------------------------------------------------------------------------
Reopening for you to note my last comment...
--------------------------------------------------------------------------------
Red it already ; I'm not sure this redirect is useful, indeed, but I think it's harmless and should not bother you ?
--------------------------------------------------------------------------------
It does not bother me much... :) But it "limits" me. I guess it could be a typo so that's why reported.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

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

  • カテゴリCode cleanup/refactoring_30 にセット

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

いいね!0
いいね!0