Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Fixed the auto_link-ing stuff. #10

Merged
merged 1 commit into from over 2 years ago

2 participants

Thom Mahoney Chris Tosswill
Thom Mahoney
Collaborator

No description provided.

Chris Tosswill

Is raw ok on JRuby, 1.8.7, etc ?

Thom Mahoney
Collaborator

Tested working with mri, jruby, and rbx

Thom Mahoney thommahoney merged commit 288f525 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Nov 10, 2011
Thom Mahoney thommahoney Fixed the auto_link-ing stuff. b0e3172
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +2 2 app/views/tasks/index.html.erb
4 app/views/tasks/index.html.erb
@@ -45,7 +45,7 @@
45 45 <li>
46 46 <%= f.input :done , :input_html => { :class => 'box' } , :label => false %>
47 47 <%= f.button :submit , :class => 'hidden' %>
48   - <%= auto_link( h(task.name) ) %>
  48 + <%= raw auto_link( h(task.name), :html => { :target => '_blank' }) %>
49 49 <p class="delete-task">
50 50 <%= link_to 'X', list_task_url(list, task), :confirm => 'Are you sure?', :method => :delete %>
51 51 </p>
@@ -61,7 +61,7 @@
61 61 <ul class="tasks finished-tasks">
62 62 <% list.done_tasks.each do |task| %>
63 63 <li class="finished">
64   - <%= auto_link( h(task.name) ) %>
  64 + <%= raw auto_link( h(task.name), :html => { :target => '_blank' }) %>
65 65 <p class="delete-task">
66 66 <%= link_to 'X', list_task_url(list, task), :confirm => 'Are you sure?', :method => :delete %>
67 67 </p>

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.