# Trouble with plugin

**URL:** <https://www.ruby-forum.com/t/trouble-with-plugin/121727>\
**Category:** Rails\
**Created:** [November 30, 2007, 9:43am UTC](https://www.ruby-forum.com/t/trouble-with-plugin/121727 "2007-11-30T09:43:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [November 30, 2007, 9:43am UTC](https://www.ruby-forum.com/t/trouble-with-plugin/121727/1 "2007-11-30T09:43:23Z")

</div>

Hi,

Just trying to write a simple plugin, I dont want it to be part of the  
app all the time so I want it to be contained in the plugin. When I  
access, [http://0.0.0.0:3000/plugin\_test](http://0.0.0.0:3000/plugin_test)  
I want it to display the index Ive created in my controller, Ive set  
it up in files,

init.rb:

ActionController::Base.send(:include, PluginTest)

lib/plugin\_test.rb

module PluginTest

class PluginTestController \< ActionController::Base

```
  def index
    puts "here"
    return render :text => "yay some text!"
  end

end

```

end

But when I visit the page, I get a routing error. Im sure Im doing  
something slightly wrong, but cant figure out what.
