]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/diary_entry_controller.rb
no longer deletes nodes used in other segments ('H' test case)
[rails.git] / app / controllers / diary_entry_controller.rb
index afa2722a1f99ab82782eb2610468dd0e49d0bb09..f8e2a5761d58575189b74c36b72af987ea44ef9c 100644 (file)
@@ -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