| | 279 | if defined?(ActionMailer::Base) && controller.is_a?(ActionMailer::Base) && !template_path.include?("/") |
|---|
| | 280 | raise ActionViewError, <<-END_ERROR |
|---|
| | 281 | Due to changes in ActionMailer, you need to provide the mailer_name along with the template name. |
|---|
| | 282 | |
|---|
| | 283 | render "user_mailer/signup" |
|---|
| | 284 | render :file => "user_mailer/signup" |
|---|
| | 285 | |
|---|
| | 286 | If you are rendering a subtemplate, you must now use controller-like partial syntax: |
|---|
| | 287 | |
|---|
| | 288 | render :partial => 'signup' # no mailer_name necessary |
|---|
| | 289 | END_ERROR |
|---|
| | 290 | end |
|---|
| | 291 | |
|---|