Skip to content

Instantly share code, notes, and snippets.

@stas
Created September 27, 2009 14:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stas/194800 to your computer and use it in GitHub Desktop.
Save stas/194800 to your computer and use it in GitHub Desktop.
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb
index f3280cc..856290f 100755
--- a/app/controllers/projects_controller.rb
+++ b/app/controllers/projects_controller.rb
@@ -59,6 +59,12 @@ class ProjectsController < ApplicationController
:limit => Setting.feeds_limit.to_i)
render_feed(projects, :title => "#{Setting.app_title}: #{l(:label_project_latest)}")
}
+ format.xml {
+ render :xml => Project.visible.all
+ }
+ format.yaml {
+ render :text => Project.visible.all.to_yaml
+ }
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment