メルマガ配信内容設定画面で実行時エラーが発生する
メルマガ配信内容設定画面で以下の通り実行時エラーが発生します。
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'となっているための様です。
メルマガ配信内容設定画面で以下の通り実行時エラーが発生します。
app/views/admin/mail_magazines/_mail_contents.html.erb内で'ActionController::Base.relative_url_root'とすべき所が'ActionController::relative_url_root'となっているための様です。