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
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.