# Directing browser

**URL:** <https://www.ruby-forum.com/t/directing-browser/188818>\
**Category:** Ruby\
**Created:** [May 18, 2010, 10:30pm UTC](https://www.ruby-forum.com/t/directing-browser/188818 "2010-05-18T22:30:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![site-master](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/13edae/32.png) [@site-master](https://www.ruby-forum.com/u/site-master)\
**Post date:** [May 18, 2010, 10:30pm UTC](https://www.ruby-forum.com/t/directing-browser/188818/1 "2010-05-18T22:30:45Z")

</div>

all i want to do is use my program to open a web page in my browser i am  
also useing shoes so it would look like this

button(“facebook”){#what goes here#(“[http://www.facebook.com/](http://www.facebook.com/)”)}

please please help this is driving me mad i just need the button to open  
this page  
thanks

---

<div class="post-metadata">

**Author:** ![site-master](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/13edae/32.png) [@site-master](https://www.ruby-forum.com/u/site-master)\
**Post date:** [May 18, 2010, 11:14pm UTC](https://www.ruby-forum.com/t/directing-browser/188818/2 "2010-05-18T23:14:22Z")

</div>

On Tuesday, May 18, 2010 03:30:50 pm Mark K. wrote:

> all i want to do is use my program to open a web page in my browser

Reposting your question as a new thread is obnoxious, especially when  
someone  
already answered it. You should instead reply to that thread and tell us  
why  
their solution didn’t work.

> i am  
> also useing shoes so it would look like this
> 
> button(“facebook”){#what goes here#(“[http://www.facebook.com/](http://www.facebook.com/)”)}

That really changes very little. You may want to try with a commandline  
Ruby  
first, to make sure it’s not a Shoes issue, but it shouldn’t make a  
difference.

What changes a lot is which browser you’re using, what you’ve tried, why  
it  
didn’t work, and why Google didn’t help you. Here’s what I found by  
searching  
for “ruby open url in browser”:

[http://tinyurl.com/29rndr3](http://tinyurl.com/29rndr3)

The very, very first result gives a Stack Overflow discussion about this  
very  
issue. The first two posts tell you two different, very easy ways to do  
exactly what you’re asking.

> please please help this is driving me mad

Just the facts, please – telling us how important this is for you is  
just  
more noise we have to read through to figure out what it is you’re  
asking and  
how best to help you.

and add some punctuation while you’re at it i for one hate reading tons  
of  
words put together like this without any sentence breaks or  
capitalization  
even a period or two would help

---

<div class="post-metadata">

**Author:** ![site-master](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/13edae/32.png) [@site-master](https://www.ruby-forum.com/u/site-master)\
**Post date:** [June 6, 2010, 8:42pm UTC](https://www.ruby-forum.com/t/directing-browser/188818/3 "2010-06-06T20:42:47Z")

</div>

On Wed, May 19, 2010 at 05:30:50AM +0900, Mark K. wrote:

> all i want to do is use my program to open a web page in my browser i am  
> also useing shoes so it would look like this
> 
> button(“facebook”){#what goes here#(“[http://www.facebook.com/](http://www.facebook.com/)”)}
> 
> please please help this is driving me mad i just need the button to open  
> this page  
> thanks

[http://copiousfreetime.rubyforge.org/launchy/](http://copiousfreetime.rubyforge.org/launchy/)
