Project

General

Profile

undefined local variable or method `csrf_meta_tag' for #<ActionView::

Added by NotApplicable NotApplicable about 13 years ago

Does anyone know why the following error occurs?

NameError in Welcome#index
Showing app/views/layouts/base.rhtml where line #8 raised:

undefined local variable or method `csrf_meta_tag' for #<ActionView::Base:0x7fc214dcd628>

Extracted source (around line #8):

5: <title><%=h html_title ></title>
6: <meta name="description" content="<
= Redmine::Info.app_name >" />
7: <meta name="keywords" content="issue,bug,tracker" />
8: <
= csrf_meta_tag >
9: <
= favicon >
10: <
= stylesheet_link_tag 'application', :media => 'all' >
11: <
= stylesheet_link_tag 'rtl', :media => 'all' if l(:direction) == 'rtl' %>

RAILS_ROOT: /usr/share/redmine
Application Trace | Framework Trace | Full Trace

/usr/share/redmine/app/views/layouts/base.rhtml:8:in `_run_rhtml_app47views47layouts47base46rhtml'

Request
Parameters:

None

Show session dump
Response
Headers:

{"Content-Type"=>"",
"Cache-Control"=>"no-cache"}