プロジェクト

全般

プロフィール

Vote #64621

完了

TypeError (can't modify frozen string)

Admin Redmine さんがほぼ2年前に追加. ほぼ2年前に更新.

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

0%

予定工数:
category_id:
0
version_id:
7
issue_org_id:
2700
author_id:
3878
assigned_to_id:
0
comments:
3
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

I am getting:

TypeError (can't modify frozen string):
    /app/controllers/settings_controller.rb:44:in `<<'
    /app/controllers/settings_controller.rb:44:in `edit'
    /app/controllers/settings_controller.rb:22:in `index'

when trying to access '/settings'.

I am running the application using Passenger with URI my_server/projects. In environment.rb I have set:

config.action_controller.relative_url_root = '/projects'

when I remove the line and run the Redmine application using scripts/server everything works just fine.


journals

Change line:

<pre>
@guessed_host_and_path = request.host_with_port
</pre>
to:

<pre>
@guessed_host_and_path = ''
@guessed_host_and_path += request.host_with_port
</pre>

in settings_controller.rb around line 44.

--------------------------------------------------------------------------------
This should be fixed by r2423.
--------------------------------------------------------------------------------
Merged in 0.8 branch in r2425.
--------------------------------------------------------------------------------

Admin Redmine さんがほぼ2年前に更新

  • 対象バージョン0.8.1_7 にセット

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

いいね!0
いいね!0