This should help. include Camping::ControllerSecurity in your
controllers module or your Camping (or whatever Camping.goes has
turned it in to) module, after requiring this:
module Camping
module ControllerSecurity
def service(*a)
@method = 'get' unless ['get', 'post', 'delete',
'head'].include?(@method.to_s.downcase)
super(*a)
end
end
end
And the world should feel safe again, I think. I haven't really tested
it properly, but what could go wrong? It certainly isn't making my app
break._______________________________________________
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list