1 class DiaryEntryController < ApplicationController
4 before_filter :authorize_web, :only => [:new]
5 before_filter :require_user, :only => [:new]
8 if params[:diary_entry]
9 @entry = DiaryEntry.new(@params[:diary_entry])
12 redirect_to :controller => 'user', :action => 'diary', :display_name => @user.display_name
18 @entries=DiaryEntry.find(:all, :order => 'created_at DESC', :limit=>20)