Skip to content

Commit

Permalink
DocumentController.respond_to prioritize HTML to account for IE crapp…
Browse files Browse the repository at this point in the history
…iness
  • Loading branch information
janv committed Dec 9, 2009
1 parent e074c2f commit 39e7ef1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/controllers/documents_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,16 @@ def show
@public_document = @document.to_public_hash

respond_to do |format|
format.html do
@page_title = @document.title
render(@document.render_options.blank? ? nil : @document.render_options)
end
format.json do
render :json => @public_document
end
format.xml do
render :xml => @public_document
end
format.html do
@page_title = @document.title
render(@document.render_options.blank? ? nil : @document.render_options)
end
end
end

Expand Down

0 comments on commit 39e7ef1

Please sign in to comment.