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/rockastop/insoshi.git
Search Repo:
Admins can delete forum topics
rockastop (author)
Wed Apr 30 12:44:22 -0700 2008
commit  65e019892db52a9da2ddc7812801b75d5c077c95
tree    c7c0957b4804781277fabec5f7e2ed95224124a3
parent  26e9c32db53ea35c31f94dc0c7a558b34faf418a
...
13
14
15
 
16
17
 
18
19
20
...
13
14
15
16
17
 
18
19
20
21
0
@@ -13,8 +13,9 @@ class Admin::ForumsController < ApplicationController
0
 
0
   def show
0
     @forum = Forum.find(params[:id])
0
+ @topics = @forum.topics.paginate(:page => params[:page])
0
     respond_to do |format|
0
- format.html { redirect_to @forum }
0
+ format.html { render :template => "forums/show"}
0
     end
0
   end
0
 
...
12
13
14
15
 
16
17
18
...
12
13
14
 
15
16
17
18
0
@@ -12,7 +12,7 @@
0
     <td><%= forum_name(forum) %></td>
0
     <td><%=h forum.description %></td>
0
     <td><%=h forum.topics_count %></td>
0
- <td><%= link_to 'Show', forum_path(forum) %></td>
0
+ <td><%= link_to 'Show', admin_forum_path(forum) %></td>
0
     <td><%= link_to 'Edit', edit_admin_forum_path(forum) %></td>
0
     <td><%= link_to 'Destroy', admin_forum_path(forum),
0
                                :confirm => 'Are you sure?',

Comments

    No one has commented yet.