It didn't make it the stable branch.  If we can get a few real success
stories on the use of erubis in Rails, I'll gladly move it to the
stable branch for a 1.2.3 release (assuming there will be one, there
are no definite plans).
I was working with Ezra on erubis support when I committed that.
AFAIK, the erubis rails adapter still needs a few changes to allow it
to work with yield, and it should be ready as a drop-in replacement.
Er, I see Jeremy committed that.  I think we were just working on this
at the same time though :)
-- 
Rick Olson
http://weblog.techno-weenie.net
http://mephistoblog.com
according to http://www.kuwata-lab.com/erubis/CHANGES, erubis 2.2
should work now.  Is it only missing erb_variable or is there more
that needs to be done to rails?
> I can't get 2.2.0 to work. It looks like it requires a patched
> action_view/base.rb.
It is not necessary to apply the patch. It is optional,
because this patch is included in 'erubis/helpers/rails_helper.rb'.
> I'm not willing to patch my ActionView base.rb, so I
> don't know if yield works now (there is no mention of it in the ChangeLog).
'yield' will work very well with Erubis 2.2.0.
And the following methods which assume that variable name is '_erbout'
also works.
* ActionView::Helpers::CaptureHelper#capture()
* ActionView::Helpers::CaptureHelper#content_for()
* ActionView::Helpers::TextHelper#concat()
If you have any troubles about Erubis 2.2.0 with Ruby on Rails, please
tell me.
Thank you for trying Erubis.
--
regards,
kwatch
what errors do you have? I need details of error messages, with Rails
version.
> Don't we need to use register_template_handler at some point to
> inform rails to look for the .erubis extension too? I don't see anything in
> rails_helper.rb that does similar. Could you also explain the reason for
> avoiding register_template_handler?
reasons:
* Using register_template_handler() is no merits for Erubis in
paticular
  around performance.
  ActionView is optimized for ERB and it creates temporary method for
view
  from '*.rhtml' file. It works fast because it removes the cost to
convert
  '*.rhtml' file into ruby code and parse it.
  But register_template_handler() reads '*.rhtml' file every time and
it is
  necessary to convert eRuby into ruby code and pase it every time.
  These costs are not small and spoil the merit of Erubis's speed.
  You may use Erubis with register_template_handler(), but you will
not able
  to get the advantage of Erubis's performance.
  (In fact, ActionView is designed tightly with ERB, I think. There is
no way
   to get template file name in register_template_handler(). It is
unconvenient
   for other template engines except ERB.)
* Erubis can convert eRuby file into ruby code correctly. It means
that
  Erubis can replace ERB in Ruby on Rails. I think that there is no
problems
  when replacing ERB with Erubis.  If not, please report it to me.
--
regards,
kwatch