Vote #64621
完了TypeError (can't modify frozen string)
0%
説明
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.
--------------------------------------------------------------------------------