Enrico Mail wrote:
> 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:
> 
> require 'actionpack'
> ActionController.host_with_port
> 
> 
> 
> 
> 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:


CASClient: Frameworks:Rails: configure () Filter.
: logout_url = 
"https://mioservercas/logout?service=http://#{host_with_port}/";
}

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.
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to