Corrected action search/user_posts (not show_user)
authorNguyễn Thái Ngọc Duy <[email protected]>
Thu, 24 Aug 2006 10:29:32 +0000 (24 17:29 +0700)
committerNguyễn Thái Ngọc Duy <[email protected]>
Thu, 24 Aug 2006 10:29:32 +0000 (24 17:29 +0700)
app/views/user_profile/index.rhtml

index 05c8ad5..78356c2 100644 (file)
@@ -56,9 +56,9 @@
                                                        </p>
                                                        <p>Last post: <%= @user.last_post %></p>
 <% if current_user.is_admin? -%>
-                                                       <label>Posts<br /><input type="text" name="num_posts" value="<%= @user.num_posts %>" size="8" maxlength="8" /><br /></label><p><a href="<%= url_for :controller => 'search', :action => 'show_user', :id => @user.id %>">Show posts</a></p>
+                                                       <label>Posts<br /><input type="text" name="num_posts" value="<%= @user.num_posts %>" size="8" maxlength="8" /><br /></label><p><a href="<%= url_for :controller => 'search', :action => 'user_posts', :id => @user.id %>">Show posts</a></p>
 <% else -%>
-                                                       <p>Posts: <%= @user.num_posts %> - <a href="<%= url_for :controller => 'search', :action => 'show_user', :id => @user.id %>">Show posts</a></p>
+                                                       <p>Posts: <%= @user.num_posts %> - <a href="<%= url_for :controller => 'search', :action => 'user_posts', :id => @user.id %>">Show posts</a></p>
 <% end -%>
 <% if current_user.can_moderate? -%>
                                                        <label>Admin note<br />