myexperiment-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[myexperiment-hackers] [2723] trunk/app/views: fixed nested route names


From: noreply
Subject: [myexperiment-hackers] [2723] trunk/app/views: fixed nested route names for user history
Date: Thu, 20 Oct 2011 10:59:40 -0400 (EDT)

Revision
2723
Author
dgc
Date
2011-10-20 10:59:40 -0400 (Thu, 20 Oct 2011)

Log Message

fixed nested route names for user history

Modified Paths

Diff

Modified: trunk/app/views/userhistory/_breadcrumbs.rhtml (2722 => 2723)


--- trunk/app/views/userhistory/_breadcrumbs.rhtml	2011-10-20 14:52:58 UTC (rev 2722)
+++ trunk/app/views/userhistory/_breadcrumbs.rhtml	2011-10-20 14:59:40 UTC (rev 2723)
@@ -8,8 +8,8 @@
   <% if ["show"].include? controller.action_name.to_s -%>
 	<li><b>&#187;</b></li>
 	  
-    <li><%= link_to "My History", userhistory_path(@user) if @user == current_user %></li>
+    <li><%= link_to "My History", user_userhistory_path(@user) if @user == current_user %></li>
   <% end %>
 <% else %>
   <li><%= link_to 'User History', url_for(:controller => :userhistory) %>
-<% end %>
\ No newline at end of file
+<% end %>

Modified: trunk/app/views/users/show.rhtml (2722 => 2723)


--- trunk/app/views/users/show.rhtml	2011-10-20 14:52:58 UTC (rev 2722)
+++ trunk/app/views/users/show.rhtml	2011-10-20 14:59:40 UTC (rev 2723)
@@ -56,7 +56,7 @@
 		    <% unless @user.profile.nil? %>
 					<li><%= icon('edit', edit_user_profile_path(@user), nil, nil, 'Edit Profile') %></li>
 				<% end %>
-			  <li><%= icon('history', userhistory_path(@user), nil, nil, 'View My History')%></li>
+			  <li><%= icon('history', user_userhistory_path(@user), nil, nil, 'View My History')%></li>
 	    <% end %>
 
       <% if Authorization.check(:action ="" 'destroy', :object => @user, :user => current_user) %>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]