X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/8758685a86c3032a412183a53399e3e77dae75a1..d85887e14698d4c4f03da78dcb78169ad12de297:/app/controllers/diary_entry_controller.rb diff --git a/app/controllers/diary_entry_controller.rb b/app/controllers/diary_entry_controller.rb index a67ad575a..f8e2a5761 100644 --- a/app/controllers/diary_entry_controller.rb +++ b/app/controllers/diary_entry_controller.rb @@ -2,11 +2,11 @@ class DiaryEntryController < ApplicationController layout 'site' before_filter :authorize_web - before_filter :require_user + 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