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
Search Repo:
Fixed exception at /searches (for Alexa's benefit)
Michael Hartl (author)
Thu May 08 09:51:43 -0700 2008
commit  36f34ca84b0d217e1d6b4b14a852a7a393fd2622
tree    858af1b332934b4f1ec614febb33c5b387c70ca6
parent  1fb5cb875833aa1a7c41179a37f4cd8897c182a2
...
1
2
3
 
4
5
6
...
9
10
11
12
 
13
14
15
...
1
2
3
4
5
6
7
...
10
11
12
 
13
14
15
16
0
@@ -1,6 +1,7 @@
0
 class SearchesController < ApplicationController
0
 
0
   def index
0
+ redirect_to home_url and return if params[:model].nil?
0
     model = params[:model]
0
     if model == "Message"
0
       options = params.merge(:recipient => current_person)
0
@@ -9,7 +10,7 @@
0
     end
0
     @results = model.constantize.search(options)
0
     if model == "ForumPost" and @results
0
- # Cosolidate the topics, eliminating duplicates.
0
+ # Consolidate the topics, eliminating duplicates.
0
       # TODO: do this in the Topic model. This will probably require some
0
       # search-engine specific hacking, so defer to the time when we're
0
       # ready to switch to Sphinx.

Comments

    No one has commented yet.