1 class DiaryEntryController < ApplicationController
4 before_filter :authorize_web
5 before_filter :require_user
8 if params[:diary_entry]
9 @entry = DiaryEntry.new(@params[:diary_entry])
12 redirect_to :controller => 'user', :action => 'diary', :display_name => @user.display_name