Thanks mpd, which pointed me in the right direction.
For those interested in doing something like this, this is a quick and dirty method that can probably be refined and reorganized.
app/controllers/application_controller.rb :
private
def app_last_updated_at
if File.exist?(RAILS_ROOT + "/REVISION")
timezone = "Mountain Time (US & Canada)"
@app_last_updated_at = File.atime(RAILS_ROOT + "/REVISION").in_time_zone( timezone )
else
@app_last_updated_at = "Not Long Ago."
end
end
, ( - ).
, :before_filter application_controller.rb.
before_filter :app_last_updated_at
, , - :
<%=
unless @app_last_updated_at.nil?
if @app_last_updated_at.is_a? Time
@app_last_updated_at.to_s(:long)
else
@app_last_updated_at
end
end
%>
, . , ApplicationController , .