Browse files

Merge pull request #10 from engineyard/fix_links

Fixed the auto_link-ing stuff.
  • Loading branch information...
2 parents dd12364 + b0e3172 commit 288f525682525e87ae2effcdc6590d2608f6cd09 @thommahoney thommahoney committed Nov 9, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 app/views/tasks/index.html.erb
View
4 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 288f525

Please sign in to comment.