Hi,

I am trying to extend ActionController::Base with a plugin like this:

Code:
module ActionController
    class Base
  	class << self
  	  def render_item_template_inline(template)
  		return render_to_string :inline => template
  	  end
  	  
  	  def render_item_template(extension, name, layout = false)
  		file = "#{RAILS_ROOT}/app/extensions/" + extension + '/' + name + '.rhtml'
 		render_to_string :inline => File.open(file, 'r').read, :locals => { 'item' => item }, :layout => layout
  	  end
  	end
    end
  end
Yes I tried it without the "class << self" (I just saw that in the core source and added it later after it did not work without it). The file structure is:

/vendor/plugins/render_item
/vendor/plugins/render_item/init.rb
/vendor/plugins/render_item/render_item.rb

init.rb just says "require 'render_item'"

Help!

Also: Yes, I restarted WEBRick