Ticket #21682

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

오픈 날짜: 2010-05-10 20:55 마지막 업데이트: 2010-08-10 20:57

Reporter:
소유자:
Type:
Status:
Open [Owner assigned]
Component:
(None)
MileStone:
(None)
Priority:
5 - Medium
Severity:
5 - Medium
Resolution:
Accepted
File:
1

Details

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

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
  • Resolution Update from None to Accepted
  • 소유자 Update from (None) to tmatsuzawa

Attachment File List

Edit

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