Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

There was a problem

You must be a member of this account.

This project is archived and is in readonly mode.

Missing require in action_controller/url_rewriter

#5760

action_controller/url_rewriter depends upon the URI library from Ruby's standard library, but it doesn't require it. This patch simply adds the missing require 'uri'.

Ran into this issue when I upgraded some dependencies and redeployed -- Rails couldn't boot because I was configuring ActionMailer settings in config/environments/production.rb, which loads ActionMailer::Base, which includes ActionController::UrlWriter, which is missing the require 'uri', resulting in a missing constant error for ActionController::UrlWriter::URI.

Didn't get this error in development or test because I wasn't configuring ActionMailer in those environments. Nasty bug with an easy fix.

Reported by Geoff Buesing · October 5th, 2010 @ 10:11 PM

State: duplicate
Milestone: 2.3.10
Assigned to: nobody
Importance: High

Activity

  1. Ryan Bigg
    Ryan Bigg
    • State changed from new to duplicate

    There is already another ticket for this, #5555 actionmailer 2.3.9 should now require 'uri'. Could you please attach this patch to this other ticket? Thanks.

    October 6th, 2010 @ 02:14 AM