X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/88a206b0f2979caf066a3127afd3cd71b39da7c8..048f7fca8c985a8c9c138d8fc0041db5231b0fc0:/app/controllers/diary_entry_controller.rb?ds=inline diff --git a/app/controllers/diary_entry_controller.rb b/app/controllers/diary_entry_controller.rb index afa2722a1..f8e2a5761 100644 --- a/app/controllers/diary_entry_controller.rb +++ b/app/controllers/diary_entry_controller.rb @@ -1,12 +1,12 @@ class DiaryEntryController < ApplicationController layout 'site' - before_filter :authorize_web, :only => [:new] + before_filter :authorize_web before_filter :require_user, :only => [:new] def new if params[:diary_entry] - @entry = DiaryEntry.new(@params[:diary_entry]) + @entry = DiaryEntry.new(params[:diary_entry]) @entry.user = @user if @entry.save redirect_to :controller => 'user', :action => 'diary', :display_name => @user.display_name