Hi,
I’m attempting to add a route via a plugin. I attempted to add the
following to my init.rb:
myroute = ActionController::Routing::Routes.connect “boo2”,
:controller=>‘plugin’, :action=>‘index’
puts “path=#{myroute.path}”
myroute.options.keys.each do |k|
puts “#{k}=#{myroute.options[k]}”
end
The newly created route is coming back to me in my “myroute” varaible.
And I validate that the path and options are set. However the route
does not work.
Is there anything special I need to do to “activate” the route?
Thanks in advance. scott.
What’s an Intel chip doing in a Mac? A whole lor more that it’s ever
done in a PC.
My Digital Life - http://scottwalter.com/blog
Pro:Blog - http://scottwalter.com/problog
Snippets - http://snippets.scottwalter.com