Project

General

Profile

Actions

Defect #2700

closed

TypeError (can't modify frozen string)

Defect #2700: TypeError (can't modify frozen string)

Added by Stefan Urbanek almost 18 years ago. Updated almost 18 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
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.

Updated by Stefan Urbanek almost 18 years ago Actions #1

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.

Updated by Jean-Philippe Lang almost 18 years ago Actions #2

  • 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.

Updated by Jean-Philippe Lang almost 18 years ago Actions #3

  • Status changed from Resolved to Closed

Merged in 0.8 branch in r2425.

Actions

Also available in: PDF Atom