public
Fork of insoshi/insoshi
Description: The open source social networking platform in Ruby on Rails from the author of RailsSpace
Homepage: http://insoshi.com
Clone URL: git://github.com/toim/insoshi.git
Fixed broken links on forum search results
Michael Hartl (author)
Thu May 08 17:26:27 -0700 2008
commit  32a5ad4099beea7b8fd160ccb10443233eef8d77
tree    9d00c41834b06720426ac05464c57f717be2b052
parent  81389f1c0a1dc1874f2f5c885fb43efa97233e60
...
7
8
9
10
 
11
12
13
...
15
16
17
18
19
 
 
20
21
22
...
7
8
9
 
10
11
12
13
...
15
16
17
 
 
18
19
20
21
22
0
@@ -7,7 +7,7 @@
0
   <p>
0
   <%- n = topic.posts.count -%>
0
   <%= link_to h(topic.name),
0
- forum_topic_path(@forum, topic, :comments => n),
0
+ forum_topic_path(topic.forum, topic, :comments => n),
0
               :class => "show-follow" %>
0
   <span class="meta">(<%= pluralize(n, "post") %>)</span>
0
   </p>
0
@@ -15,8 +15,8 @@
0
     Created by <%= person_link topic.person %>
0
     <%= time_ago_in_words(topic.created_at) %> ago
0
     <%- if admin? -%>
0
- | <%= link_to "Edit", edit_forum_topic_path(@forum, topic) %>
0
- | <%= link_to "Destroy", forum_topic_path(@forum, topic),
0
+ | <%= link_to "Edit", edit_forum_topic_path(topic.forum, topic) %>
0
+ | <%= link_to "Destroy", forum_topic_path(topic.forum, topic),
0
                                 :confirm => 'Are you sure?',
0
                                 :method => :delete %>
0
     <%- end -%>

Comments

    No one has commented yet.