Include helper in a helper subclass keeping controller context functions?

Make_stuff is a class method. Http_foo is an instance method. Hence, when you call http__foo from your make_stuff it is like calling Service.

Http_foo() which is not defined. What is defined is Service.new. Http_foo() .

Oldergod is correct about the class vs. instance methods issue. Additionally, params is a method defined in ActionControllor, which is somewhere above the inheritance tree of all your controllers. The params method will NOT be available in the Service (which is where it ends up when you include HttpHelper in Service), unless you make it a subclass of ActionController or ApplicationController, which would be a little strange since it isn't a controller.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions