Skip to content

Commit f2312c5

Browse files
committed
link to sharing
1 parent 0512801 commit f2312c5

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

app/views/messages/index.html.erb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
<table>
44
<tr>
55
<th>Title</th>
6-
<th>Content</th>
76
<th>User</th>
87
<th></th>
98
<th></th>
@@ -13,7 +12,6 @@
1312
<% @messages.each do |message| %>
1413
<tr>
1514
<td><%= message.title %></td>
16-
<td><%= message.content %></td>
1715
<td><%= message.user %></td>
1816

1917
<td><%= link_to 'Show encrypted', show_encrypted_message_path(message), :class => 'btn btn-success' if current_user.id == message.user.id%></td>

app/views/messages/show.html.erb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
<b>User:</b>
1515
<%= @message.user %>
1616
</p>
17-
17+
<p>
18+
<b>Link to sharing:</b>
19+
<%= url_for(show_encrypted_message_url) %>
20+
</p>
1821

1922
<%= link_to 'Back', messages_path, :class => 'btn btn-success' %>

0 commit comments

Comments
 (0)