Permalink
Browse files

total dump at /spectrums/all/foo.xml or .json

  • Loading branch information...
1 parent c7d905c commit a430934db609c6ebcda86a5753c6422db14344a0 @jywarren committed Feb 17, 2012
Showing with 8 additions and 0 deletions.
  1. +8 −0 webserver/app/controllers/spectrums_controller.rb
@@ -204,4 +204,12 @@ def clone
redirect_to "/spectra/show/"+@spectrum.id.to_s
end
+ def all
+ @spectrums = Spectrum.find(:all)
+ respond_to do |format|
+ format.xml { render :xml => @spectrums }
+ format.json { render :json => @spectrums }
+ end
+ end
+
end

0 comments on commit a430934

Please sign in to comment.