We got nominated! Help us out and vote for GitHub as Best Bootstrapped Startup of 2008. (You can vote once a day.) [ hide ]

public
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/insoshi/insoshi.git
Fixed a tiny bug in forum topic deletion and admin forum display
Michael Hartl (author)
Fri Aug 08 11:45:31 -0700 2008
commit  bef4ff1e0ee5c6c1b142e30dade51013ca3bc70c
tree    bb304f6c9a02d72a6ebbec25c2006104d3bef09b
parent  efdb12604992da3627e6e7bac7df701a2635c3c4
...
44
45
46
47
 
48
49
50
...
57
58
59
60
 
61
62
63
...
44
45
46
 
47
48
49
50
...
57
58
59
 
60
61
62
63
0
@@ -44,7 +44,7 @@ class TopicsController < ApplicationController
0
     respond_to do |format|
0
       if @topic.update_attributes(params[:topic])
0
         flash[:success] = 'Topic was successfully updated.'
0
- format.html { redirect_to admin_forum_url(@forum) }
0
+ format.html { redirect_to forum_url(@forum) }
0
       else
0
         format.html { render :action => "edit" }
0
       end
0
@@ -57,7 +57,7 @@ class TopicsController < ApplicationController
0
 
0
     respond_to do |format|
0
       flash[:success] = 'Topic was successfully destroyed.'
0
- format.html { redirect_to admin_forum_url(@forum) }
0
+ format.html { redirect_to forum_url(@forum) }
0
     end
0
   end
0
 
...
2
3
4
5
 
6
7
8
...
2
3
4
 
5
6
7
8
0
@@ -2,7 +2,7 @@
0
   <h2>Discussion topics</h2>
0
   
0
   <ol class="list forum full">
0
- <%= render :partial => @topics %>
0
+ <%= render :partial => 'topics/topic', :collection => @topics %>
0
   </ol>
0
   <%= will_paginate(@topics) %>
0
   

Comments

    No one has commented yet.