Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fixed the auto_link-ing stuff. #10

Merged
merged 1 commit into from

2 participants

@thommahoney

No description provided.

@tosswill

Is raw ok on JRuby, 1.8.7, etc ?

@thommahoney

Tested working with mri, jruby, and rbx

@thommahoney thommahoney merged commit 288f525 into from
@slack slack deleted the branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 10, 2011
  1. Fixed the auto_link-ing stuff.

    Thom Mahoney authored
This page is out of date. Refresh to see the latest.
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>
Something went wrong with that request. Please try again.