Project

General

Profile

Actions

Defect #2700

closed

TypeError (can't modify frozen string)

Added by Stefan Urbanek over 15 years ago. Updated over 15 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Start date:
2009-02-08
Due date:
% Done:

0%

Estimated time:
Resolution:
Affected version:

Description

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.

Actions #1

Updated by Stefan Urbanek over 15 years ago

Change line:

    @guessed_host_and_path = request.host_with_port

to:
    @guessed_host_and_path = ''
    @guessed_host_and_path += request.host_with_port

in settings_controller.rb around line 44.

Actions #2

Updated by Jean-Philippe Lang over 15 years ago

  • Status changed from New to Resolved
  • Target version set to 0.8.1
  • Affected version (unused) set to devel

This should be fixed by r2423.

Actions #3

Updated by Jean-Philippe Lang over 15 years ago

  • Status changed from Resolved to Closed

Merged in 0.8 branch in r2425.

Actions

Also available in: Atom PDF