Skip to content

Commit

Permalink
Allow RABL templates to render XML
Browse files Browse the repository at this point in the history
  • Loading branch information
tashian committed Jul 8, 2011
1 parent 417cdc0 commit 3a0ac52
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/controllers/bills_controller.rb
Expand Up @@ -3,7 +3,7 @@ class BillsController < SubdomainController
before_filter :get_bill, :except => [:index, :upper, :lower, :search]
before_filter :setup_sort, :only => [:index, :upper, :lower]
respond_to :html, :only => [:index, :show]
respond_to :json, :only => [:index, :show, :search]
respond_to :json, :xml, :only => [:index, :show, :search]

def index
expires_in 30.minutes
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/people_controller.rb
@@ -1,6 +1,6 @@
class PeopleController < SubdomainController
before_filter :find_person, :except => [:index, :search]
respond_to :html, :json, :only => [:index, :votes]
respond_to :html, :json, :xml, :only => [:index, :votes]

# /people
def index
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions public/javascripts/widget.js
Expand Up @@ -222,6 +222,7 @@ OG = window.OG || {};

OG.Widget.WIDGET_NUMBER = 0;

// The actual widget code starts here.
OG.Widget.prototype = function () {
var http = isHttps ? 'https://' : 'http://';
var domain = 'opengovernment.org';
Expand Down

0 comments on commit 3a0ac52

Please sign in to comment.