This project is archived and is in readonly mode.

#6575 open
Marc-André Lafortune

helper :all from ActionMailer

Reported by Marc-André Lafortune | March 14th, 2011 @ 05:12 PM

The documentation for AbstractController::Helpers#helper states that :all is a special parameter.

Indeed, from a ActionController::Base, helper :all will use all the helper files. It even does that by default in Rails 3.

On the other hand, this doesn't work from ActionMailer::Base and we get:

Missing helper file helpers/all_helper.rb

Note that ActionMailer::Base < AbstractController::Helpers is true.

1) It would be nice if helper :all could work for ActionMailer::Base also.

2) If it did, maybe ActionMailer::Base should call it by default, as ActionController does

3) If it wont, and :all can not handled by all descendants of AbstractController::Helpers, then the doc should be updated to reflect this.

Thanks

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Pages