How do I open a browser window 开发者_JAVA百科(Safari) with Ruby on a Mac and pass it a url?
You can use:
`open #{url}`
Basically the same as Peter's answer, just more explicit.
system("open -a Safari #{url}")
How do I open a browser window 开发者_JAVA百科(Safari) with Ruby on a Mac and pass it a url?
You can use:
`open #{url}`
Basically the same as Peter's answer, just more explicit.
system("open -a Safari #{url}")
精彩评论