]> git.openstreetmap.org Git - rails.git/blob - app/controllers/diary_entry_controller.rb
geocoder controller - handles geocoding
[rails.git] / app / controllers / diary_entry_controller.rb
1 class DiaryEntryController < ApplicationController
2   layout 'site'
3   
4   before_filter :authorize_web
5   before_filter :require_user
6
7   def new
8     if params[:diary_entry]     
9       @entry = DiaryEntry.new(@params[:diary_entry])
10       @entry.user = @user
11       if @entry.save 
12         redirect_to :controller => 'user', :action => 'diary', :display_name => @user.display_name 
13       end
14     end
15   end
16 end