]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/diary_entry_controller.rb
Send an email notification out when a new message is waiting on the site for you.
[rails.git] / app / controllers / diary_entry_controller.rb
index 83fcb4aea8362119e88064271c56c51d23584405..e763dfd7225ef7eaff433ca618fbebe8773077ed 100644 (file)
@@ -7,9 +7,9 @@ class DiaryEntryController < ApplicationController
   def new
     @title = 'new diary entry'
     if params[:diary_entry]     
   def new
     @title = 'new diary entry'
     if params[:diary_entry]     
-      @entry = DiaryEntry.new(params[:diary_entry])
-      @entry.user = @user
-      if @entry.save 
+      @diary_entry = DiaryEntry.new(params[:diary_entry])
+      @diary_entry.user = @user
+      if @diary_entry.save 
         redirect_to :controller => 'diary_entry', :action => 'list', :display_name => @user.display_name 
       end
     end
         redirect_to :controller => 'diary_entry', :action => 'list', :display_name => @user.display_name 
       end
     end