trace bits and a georss class

This commit is contained in:
Steve Coast 2006-12-08 15:31:04 +00:00
parent 6559db51df
commit dd1f94e341
3 changed files with 89 additions and 1 deletions

View file

@ -38,6 +38,12 @@ class TraceController < ApplicationController
redirect_to :action => 'mine'
end
def georss
traces = Trace.find(:all, :conditions => ['public = true'], :order => 'timestamp DESC', :limit => 20)
end
def picture
trace = Trace.find(params[:id])
send_data(trace.large_picture, :filename => "#{trace.id}.gif", :type => 'image/png', :disposition => 'inline') if trace.public