Class: Junebug::Controllers::Recent

Inherits:
R
  • Object
show all
Defined in:
lib/junebug/controllers.rb

Instance Method Summary collapse

Instance Method Details

#getObject



172
173
174
175
176
# File 'lib/junebug/controllers.rb', line 172

def get
  @page_title = "Recent Changes"
  @pages = Page.find(:all, :order => 'updated_at DESC', :conditions => "updated_at > '#{30.days.ago.strftime("%Y-%m-%d %H:%M:%S")}'")
  render :recent
end