Simply adding require "erubis"
doesn't seem to have any effect, at least with Rails 2.0.
I had to follow this to enable erubis:
http://railspikes.com/2007/12/10/rendering-erubis-and-rails-2-0
it works fine with both RadiantCMS and Redmine
I can not get Redmine running with erubis 2.5.0 and Rails 2.0.2.
I get a 500 error on home page:
...
Rendering template within layouts/base
Rendering welcome/index
←[4;35;1mSetting Load (0.000000)←[0m ←[0mSELECT * FROM `settings` WHERE (`se
ttings`.`name` = 'welcome_text') LIMIT 1←[0m
ERROR: compiling _run_erubis_47app47views47news47_news46rhtml RAISED compile err
or
H:/trunk_fix/app/views/news/_news.rhtml:1: syntax error, unexpected kUNLESS_MOD,
expecting ')'
_erbout = _buf = ''; _buf << '<p>'; _buf << Erubis::XmlHelper.escape_xml( link_t
o(h(news.project.name), :controller => 'projects', :action => 'show', :id => new
s.project) + ': ' unless @project ); _buf << '
^
H:/trunk_fix/app/views/news/_news.rhtml:3: syntax error, unexpected kIF_MOD, exp
ecting ')'
'; _buf << Erubis::XmlHelper.escape_xml( "(#{news.comments_count} #{lwr(:label_c
omment, news.comments_count).downcase})" if news.comments_count > 0 ); _buf << '
^
H:/trunk_fix/app/views/news/_news.rhtml:3: syntax error, unexpected ')', expecti
ng kEND
'; _buf << Erubis::XmlHelper.escape_xml( "(#{news.comments_count} #{lwr(:label_c
omment, news.comments_count).downcase})" if news.comments_count > 0 ); _buf << '
...
I think it's caused by inline statements.
Can you tell which Rails and erubis versions you're using ?