Skip to content

Commit

Permalink
auto generate google search link on plant index
Browse files Browse the repository at this point in the history
  • Loading branch information
one-m1nd committed Mar 4, 2024
1 parent 59b709d commit 5b08589
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/views/plants/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
<th>Genus</th>
<th>Status</th>
<th>URL</th>
<th>Search</th>
</tr>
</thead>
<tbody>
Expand All @@ -30,6 +31,11 @@
<td class="border border-slate-900">
<a href="<%= plant_url(plant) %>">Show</a>
</td>
<td class="border border-slate-900">
<a href="<%= "https://www.google.com/search?q=#{plant.name}" %>" target="_blank">
Google
</a>
</td>
</tr>
<% end %>
</tbody>
Expand Down

0 comments on commit 5b08589

Please sign in to comment.