Permalink
Browse files

Fixed ERB calls

  • Loading branch information...
1 parent 787e469 commit 028a73dd918bf4289358db31241eebbebea90bee @mdarby committed Feb 12, 2009
Showing with 4 additions and 4 deletions.
  1. +4 −4 generators/mq/templates/views/_email.html.erb
View
8 generators/mq/templates/views/_email.html.erb
@@ -1,15 +1,15 @@
<tr id="<%%= dom_id(<%= object_name %>) %>">
- <td><%= object_name %>.to</td>
- <td><%= object_name %>.mailer_method</td>
+ <td><%%=<%= object_name %>.to %></td>
+ <td><%%=<%= object_name %>.mailer_method %></td>
<td><%%= time_ago_in_words(<%= object_name %>.created_at) %> ago</td>
<%% if <%= object_name %>.attempts > 0 %>
- <td><%= object_name %>.attempts</td>
+ <td><%%=<%= object_name %>.attempts %></td>
<td><%%= time_ago_in_words(<%= object_name %>.last_attempt_at) %> ago</td>
<%% else %>
<td>&nbsp;</td>
<td>&nbsp;</td>
<%% end %>
<td><%%= link_to "Deliver", deliver_<%= object_name %>_path(<%= object_name %>), :method => :get %></td>
- <td><%%= link_to 'Delete', <%= object_name %>_path(@<%= object_name %>), :method => :destroy %></td>
+ <td><%%= link_to 'Delete', <%= object_name %>_path(<%= object_name %>), :method => :delete %></td>

0 comments on commit 028a73d

Please sign in to comment.