Rails app is prepending tunnlr web address when using link helpers

Posted by mathee on Stack Overflow See other posts from Stack Overflow or by mathee
Published on 2010-05-20T05:46:28Z Indexed on 2010/05/20 5:50 UTC
Read the original article Hit count: 349

I set up facebooker to tunnel my Ruby on Rails application.

The issue is that I would like to test locally. That is, I don't want to have to start a tunnel every time I want to see my changes.

Right now, when I start the application using ruby script/server (not calling rake facebooker:tunnel:background_start beforehand), links created by helpers (e.g., stylesheet_link_tag, javascript_include_tag, image_tag) are prepended with my tunnlr address: http://web1.tunnlr.com:myPort/. (For example, a CSS link looks like this in the page source: http://web1.tunnlr.com:myPort//stylesheets/appName.css?1234567890.)

I don't want that functionality; I can't see my CSS or JavaScript changes without starting the tunnel first. I want the links to be relative to what's running on my machine, not the tunnel. So, stylesheet_link_tag should produce /stylesheets/appName.css?1234567890.

Does anyone know why it's doing that in the first place and how to fix it?

Thanks in advance.

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about tunneling