Sha256: 5e2d4a5f8ab868b03b37ea0a1dde7d6eee8fd48270026c78ffaa9aa1a485f449
Contents?: true
Size: 237 Bytes
Versions: 30
Compression:
Stored size: 237 Bytes
Contents
def path_to_url(path) "#{request.protocol}#{request.host_with_port.sub(/:80$/,"")}/#{path.sub(/^\//,"")}" end def show_page save_page Rails.root.join( 'public', 'capybara.html' ) %x(launchy http://localhost:3000/capybara.html) end
Version data entries
30 entries across 30 versions & 1 rubygems