Skip to content

Commit

Permalink
Changed to sets_path and link_to helpers.
Browse files Browse the repository at this point in the history
  • Loading branch information
wickr committed Mar 20, 2014
1 parent f93413d commit a132288
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/catalog/_home_text.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div class="row">
<div class="span5 welcome">
<%= image_tag "oregondigital/logo-lg.png", :alt => "Oregon Digital Logo" %>
<div class="collections-link"><a href="/sets">Collections List</a><br />
<div class="collections-link"><%= link_to "Collections List", sets_path %><br />
View a list of Digital Collections.</div>
<p>The OSU and UO Libraries' Digital Collections are created
to support the teaching and research mission of the
Expand Down
2 changes: 1 addition & 1 deletion app/views/sets/_home_text.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<ul>
<% @collections.each do |collection| -%>
<li><a href="<%= "/sets/#{collection.pid.split(':').last}" %>"><%= collection.title %></a></li>
<li><%= link_to collection.title, sets_path(collection.pid.split(':').last) %></li>
<% end -%>
</ul>

Expand Down

0 comments on commit a132288

Please sign in to comment.