Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1053319
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T17:14:00+00:00 2026-05-16T17:14:00+00:00

I am attempting to deploy a Rails 3.0.0 application to a sub URI using

  • 0

I am attempting to deploy a Rails 3.0.0 application to a sub URI using passenger 2.2.15.

I believe I’ve made the correct RailsBaseURI changes to my http.conf , have symlinked the sub URI to the public directory of my app and added the following line of code to environments/production.rb:

config.action_controller.relative_url_root = "/sub_uri"

I’ve done this several times pre-rails3.0.0. That said, the app won’t launch. It fails with the following Passenger error:

Error Message: wrong number of arguments(1 for 0)

Exception class: ArgumentError

/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.0/lib/action_controller/railtie.rb 54 in `relative_url_root='

Is there an incompatibility between passenger 2.2.15 and rails 3.0.0 that affects sub URI’s?

Any help sorting out this error is greatly appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T17:14:01+00:00Added an answer on May 16, 2026 at 5:14 pm

    The setter is depreciated, it’s nowhere to be found in actionpack/lib/action_controller/railtie.rb.

    As seen here (actionpack/lib/action_controller/depreciated/base.rb):

    module ActionController
      class Base
        # Deprecated methods. Wrap them in a module so they can be overwritten by plugins
        # (like the verify method.)
        module DeprecatedBehavior #:nodoc:
          def relative_url_root
            ActiveSupport::Deprecation.warn "ActionController::Base.relative_url_root is ineffective. " <<
              "Please stop using it.", caller
          end
    
          def relative_url_root=
            ActiveSupport::Deprecation.warn "ActionController::Base.relative_url_root= is ineffective. " <<
              "Please stop using it.", caller
          end
        end
      end
    end
    

    In actionpack/lib/action_controller/metal/compatibility.rb you can see it’s setter is an ENV variable:

    self.config.relative_url_root = ENV['RAILS_RELATIVE_URL_ROOT']
    

    So you need to set the ENV variable: RAILS_RELATIVE_URL_ROOT="/sub_uri"

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm hit a problem when attempting to deploy a MVC app as a sub-application
I am using Capistrano to deploy a ruby on rails project. I am attempting
I'm very new to rails and attempting to deploy some changes to my production
I am attempting to deploy a RoR app using Passenger onto my DreamHost hosting
I am attempting to deploy a web application to IIS using a web application
I'm attempting to deploy ODP.Net with my application using the Oracle Instaclient. While reading
I am attempting to deploy a Rails application (which works fine in development) onto
I'm attempting to deploy a WPF application to IIS. After copying the files to
I am attempting to deploy my webapp using maven to an embedded tomcat server.
I am attempting to create/deploy an application onto the Redhat OpenShift Express platform, and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.