Hello everyone... i'm Italian, sorry for my poor English, but I find
myself in difficulties with this method.I don't need to redirect the
logout of rubycas in a host other than localhost... when the decoy in
"config/environment.rb" of course tells me 'method 'host_with_port'
undefined'... I looked in the folder of ruby and i saw that it is
defined in
Ruby\lib\ruby\gems\1.8\gems\actionpack-2.3.4\lib\action_controller\request.rb,
then to invoke it I did the following:
and gives me this error: "undefined method 'host_with_port' for
ActionController::Module (NoMethodError)". How do you? It is defined
precisely in that module... I hope that to help me because I do not come
out.
PS: I use rails 2.3.4
I noticed that the host_with_port method works safely all controller or
view, but if I go to use it in config/environment.rb setting a filter
rubycas logout so:
tells me that the host_with_port method is undefined... I do the require
something? I repeat that this method don't works only in
config/environment.rb. I hope have been clearer.
gives me the same error(undefined method request...at line50).I'm in the
presence of a request here.I couldn't use "request" and "host_with_port"
in environment.rb,because they are undefined.Why?