Re: [Rails] yaml and ip addresses

2013-05-22 Thread Abinoam Jr.
Intepreted as String. Look at my irb session (I've put 200.200.200.200 for testing purposes). Try logging what the string looks like after interpolation. 1.9.3p429 :020 y = EOF 1.9.3p429 :021 agent_development: 1.9.3p429 :022 host: localhost 1.9.3p429 :023 port: 3001 1.9.3p429 :024

Re: [Rails] yaml and ip addresses

2013-05-22 Thread tamouse mailing lists
On Tue, May 21, 2013 at 11:27 AM, John Merlino stoici...@aol.com wrote: I was using this code url = http://#{agent_host}:#{agent_port}/home/create_unit?; And it worked fine in development but for my config.yml, I was specifying localhost for agent_host. However in production,

[Rails] yaml and ip addresses

2013-05-21 Thread John Merlino
I was using this code url = http://#{agent_host}:#{agent_port}/home/create_unit?; And it worked fine in development but for my config.yml, I was specifying localhost for agent_host. However in production, agent_host is an actual ip address and it just wouldn't work. So I had to

Re: [Rails] yaml and ip addresses

2013-05-21 Thread Norbert Melzer
Use for strings if they are ambitious, 127.0.0.1 for example. Am 21.05.2013 18:27 schrieb John Merlino stoici...@aol.com: I was using this code url = http://#{agent_host}:#{agent_port}/home/create_unit?; And it worked fine in development but for my config.yml, I was specifying