]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/diary_entry_controller.rb
Change server_settings to smtp_settings to avoid deprecation warning.
[rails.git] / app / controllers / diary_entry_controller.rb
index a67ad575a99b52b1193e1965fe684f4bf69f9420..f8e2a5761d58575189b74c36b72af987ea44ef9c 100644 (file)
@@ -2,11 +2,11 @@ class DiaryEntryController < ApplicationController
   layout 'site'
   
   before_filter :authorize_web
   layout 'site'
   
   before_filter :authorize_web
-  before_filter :require_user
+  before_filter :require_user, :only => [:new]
 
   def new
     if params[:diary_entry]     
 
   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 
       @entry.user = @user
       if @entry.save 
         redirect_to :controller => 'user', :action => 'diary', :display_name => @user.display_name