Hello,
I’ve got some problems migrating from rails2 to rails3: I have some
controllers in a subdirectory, and I want to access them in a
non-restful/resourceful way.
Previously I just created a controller in /util, prefixed the class name
with Util:: and it worked, that is /util/controller_name/action_name was
routed properly.
I was trying various approaches with :namespace, e.g.:
namespace :util do
match ‘:controller(/:action(/:id(.:format)))’
end
but that throws an exception during boot: “:controller segment is not
allowed within a namespace block”
What is the proper way to map such controllers?
–
Thanks,
Adam Warski