Skip to content

Instantly share code, notes, and snippets.

@alekseyg
Created September 9, 2013 21:26
Show Gist options
  • Save alekseyg/6501738 to your computer and use it in GitHub Desktop.
Save alekseyg/6501738 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<title>LinkToBug</title>
<link data-turbolinks-track="true" href="/assets/application.css?body=1" media="all" rel="stylesheet" />
<link data-turbolinks-track="true" href="/assets/bug.css?body=1" media="all" rel="stylesheet" />
<script data-turbolinks-track="true" src="/assets/jquery.js?body=1"></script>
<script data-turbolinks-track="true" src="/assets/jquery_ujs.js?body=1"></script>
<script data-turbolinks-track="true" src="/assets/turbolinks.js?body=1"></script>
<script data-turbolinks-track="true" src="/assets/bug.js?body=1"></script>
<script data-turbolinks-track="true" src="/assets/application.js?body=1"></script>
<meta content="authenticity_token" name="csrf-param" />
<meta content="zzPbV3pe+8VpYQcMgh6LrXsuYCo5GPricRPX0gOs8vI=" name="csrf-token" />
</head>
<body>
<p>
<a href="/?hello=world">Hello World</a>
</p>
<p>
<a action="index" controller="bug" hello="world">
<span>Hello Bug!</span>
</a></p>
<p>
<a href="/?hello=world"><span>Hello Workaround</span></a>
</p>
</body>
</html>
<p>
<%= link_to 'Hello World', params.merge(hello: 'world') %>
</p>
<p>
<%= link_to params.merge(hello: 'world') do %>
<span>Hello Bug!</span>
<% end %>
</p>
<p>
<%= link_to content_tag(:span, 'Hello Workaround'),
params.merge(hello: 'world') %>
</p>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment