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.

This project is archived and is in readonly mode.

Deprecation warning for ActionMailer::Base.register_template_extension suggests nonexistent alternative

#1475

Rails 2.2 issues the following deprecation warning:

DEPRECATION WARNING: ActionMailer::Base.register_template_extension has been deprecated.Use ActionView::Base.register_template_extension instead.

The problem is that ActionView::Base.register_template_extension doesn't exist.

Reported by Timothy Jones · November 26th, 2008 @ 12:53 AM

State: invalid
Milestone: 2.x
Assigned to: nobody
Importance: none

Activity

  1. josh
    josh
    • State changed from new to invalid

    ActionView::Base.register_template_extension will work. It delegates to ActionView::Template.

    November 27th, 2008 @ 03:17 AM

  2. Timothy Jones
    Timothy Jones

    Not in Rails 2.2.2:

    undefined method register_template_extension' for ActionView::Base:Class (NoMethodError)

    November 27th, 2008 @ 03:28 AM

  3. rgh
    rgh

    Actually Josh it doesn't work. I get the same message as Timothy, it isn't mentioned in the doco either.

    December 3rd, 2008 @ 12:33 AM

  4. josh