Ticket #21682

メルマガ配信内容設定画面で実行時エラーが発生する

Date d'ouverture: 2010-05-10 20:55 Dernière mise à jour: 2010-08-10 20:57

Rapporteur:
Propriétaire:
Type:
État:
Ouvert [Owner assigned]
Composant:
(Aucun)
Jalon:
(Aucun)
Priorité:
5 - moyen
Sévérité:
5 - moyen
Résolution:
Accepted
Fichier:
1

Détails

 メルマガ配信内容設定画面で以下の通り実行時エラーが発生します。

NoMethodError in Admin/mail_magazines#template_search

Showing app/views/admin/mail_magazines/_mail_contents.html.erb where line #17 raised:

undefined method `relative_url_root' for ActionController:Module
Extracted source (around line #17):

14:       <% unless (params[:action] =~ /confirm/ && !@contents.body.blank?) %>
15:         <div id='emoji_area_contents[body]'>
16:             <script language="JavaScript" type="text/javascript">
17:               writeRichText('contents[body]','<%=h_apos @contents.body %>', 400, 690, true, false, '<%= @contents.form_type %>', "<%=h ActionController::relative_url_root + '/images/emoticons/' %>");
18:             </script>
19:         </div>
20:       <% else %>
Trace of template inclusion: app/views/admin/mail_magazines/template_search.html.erb

RAILS_ROOT: /Users/smoriwaki/Documents/rails/elecoma-2.0

Application Trace | Framework Trace | Full Trace
/Users/smoriwaki/Documents/rails/elecoma-2.0/app/views/admin/mail_magazines/_mail_contents.html.erb:17:in `_run_erb_app47views47admin47mail_magazines47_mail_contents46html46erb_locals_f_mail_contents_object'
/Users/smoriwaki/Documents/rails/elecoma-2.0/app/views/admin/mail_magazines/template_search.html.erb:39:in `_run_erb_app47views47admin47mail_magazines47template_search46html46erb'
/Users/smoriwaki/Documents/rails/elecoma-2.0/app/views/admin/mail_magazines/template_search.html.erb:35:in `_run_erb_app47views47admin47mail_magazines47template_search46html46erb'

 app/views/admin/mail_magazines/_mail_contents.html.erb内で'ActionController::Base.relative_url_root'とすべき所が'ActionController::relative_url_root'となっているための様です。

Ticket History (3/3 Histories)

2010-05-10 20:55 Updated by: smoriwaki
  • New Ticket "メルマガ配信内容設定画面で実行時エラーが発生する" created
2010-08-10 20:57 Updated by: tmatsuzawa
  • Résolution Update from Aucun to Accepted
  • Propriétaire Update from (Aucun) to tmatsuzawa

Attachment File List

Modifier

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Connexion