Diff
Modified: branches/questions/app/controllers/questions_controller.rb (2039 => 2040)
--- branches/questions/app/controllers/questions_controller.rb 2008-12-09 11:49:48 UTC (rev 2039)
+++ branches/questions/app/controllers/questions_controller.rb 2008-12-11 14:43:44 UTC (rev 2040)
@@ -237,19 +237,22 @@
def find_questions
login_required if login_available?
+ require 'open-uri'
+ puts open('http://rdf.myexperiment.org/Questions', 'User-Agent' => 'Ruby-Wget').read
+
- found = Question.find(:all,
- construct_options.merge({:page => { :size => 20, :current => params[:page] }}))
+# found = Question.find(:all,
+ #construct_options.merge({:page => { :size => 20, :current => params[:page] }}))
- @questions = found
+ # @questions = found
- found2 = Question.find(:all, :order => "created_at DESC", :limit => 30)
+ # found2 = Question.find(:all, :order => "created_at DESC", :limit => 30)
- @rss_questions = [ ]
+ # @rss_questions = [ ]
- found2.each do |question|
- @rss_questions << question if question.authorized?("show", (logged_in? ? current_user : nil))
- end
+ # found2.each do |question|
+ # @rss_questions << question if question.authorized?("show", (logged_in? ? current_user : nil))
+ # end
end
def find_question_auth
@@ -308,4 +311,4 @@
options
end
-end
\ No newline at end of file
+end
Modified: branches/questions/app/controllers/session_controller.rb (2039 => 2040)
--- branches/questions/app/controllers/session_controller.rb 2008-12-09 11:49:48 UTC (rev 2039)
+++ branches/questions/app/controllers/session_controller.rb 2008-12-11 14:43:44 UTC (rev 2040)
@@ -5,7 +5,7 @@
require 'uri'
require 'openid'
-require 'openid/store/filesystem'
+#require 'openid/store/filesystem'
class SessionController < ApplicationController
Modified: branches/questions/app/views/questions/index.rhtml (2039 => 2040)
--- branches/questions/app/views/questions/index.rhtml 2008-12-09 11:49:48 UTC (rev 2039)
+++ branches/questions/app/views/questions/index.rhtml 2008-12-11 14:43:44 UTC (rev 2040)
@@ -22,4 +22,3 @@
<%= feed_icon_tag "Latest Questions", formatted_questions_path(:rss) %>
</span>
-<%= render :partial => "contributions/most_tabs", :locals => { :type => "Question" } %>
Modified: branches/questions/config/routes.rb (2039 => 2040)
--- branches/questions/config/routes.rb 2008-12-09 11:49:48 UTC (rev 2039)
+++ branches/questions/config/routes.rb 2008-12-11 14:43:44 UTC (rev 2040)
@@ -1,7 +1,7 @@
require 'lib/rest'
# SET QUESTIONS_ENABLE to enable questions
-QUESTIONS_ENABLE = false
+QUESTIONS_ENABLE = true
ActionController::Routing::Routes.draw do |map|
@@ -118,7 +118,7 @@
# all downloads and viewings
map.resources :downloads, :viewings
- # questions
+# questions
if QUESTIONS_ENABLE == true
map.connect 'questions/all', :controller => 'questions', :action ="" 'all' # all questions
map.resources :questions, :collection => { :search => :get }, :member => { :bookmark => :post, :comment => :post, :comment_delete => :delete, :rate => :post, :tag => :post, } do |question|