fud.fud-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Nov-30 08:42 UTC
Trouble with plugin.
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. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---