Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #10 from engineyard/fix_links

Fixed the auto_link-ing stuff.
  • Loading branch information...
commit 288f525682525e87ae2effcdc6590d2608f6cd09 2 parents dd12364 + b0e3172
Thom Mahoney thommahoney authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 app/views/tasks/index.html.erb
4 app/views/tasks/index.html.erb
View
@@ -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>
Please sign in to comment.
Something went wrong with that request. Please try again.