trace bits and a georss class
This commit is contained in:
parent
6559db51df
commit
dd1f94e341
3 changed files with 89 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue