Permalink
Browse files

Fixed the auto_link-ing stuff.

  • Loading branch information...
1 parent dd12364 commit b0e31729373c0a6f396afb381d04abcdc17a28f5 Thom Mahoney committed Nov 10, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 app/views/tasks/index.html.erb
@@ -45,7 +45,7 @@
<li>
<%= f.input :done , :input_html => { :class => 'box' } , :label => false %>
<%= f.button :submit , :class => 'hidden' %>
- <%= auto_link( h(task.name) ) %>
+ <%= raw auto_link( h(task.name), :html => { :target => '_blank' }) %>
<p class="delete-task">
<%= link_to 'X', list_task_url(list, task), :confirm => 'Are you sure?', :method => :delete %>
</p>
@@ -61,7 +61,7 @@
<ul class="tasks finished-tasks">
<% list.done_tasks.each do |task| %>
<li class="finished">
- <%= auto_link( h(task.name) ) %>
+ <%= raw auto_link( h(task.name), :html => { :target => '_blank' }) %>
<p class="delete-task">
<%= link_to 'X', list_task_url(list, task), :confirm => 'Are you sure?', :method => :delete %>
</p>

0 comments on commit b0e3172

Please sign in to comment.