From 5a66dbf907fb64921f55e02ef649b350486e7bf0 Mon Sep 17 00:00:00 2001 From: Steve Coast Date: Fri, 29 Jun 2007 10:18:08 +0000 Subject: [PATCH] add mappam... also stuff in user controller that must have been done by TomH? --- app/controllers/user_controller.rb | 2 +- app/views/site/index.rhtml | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb index 9972ca3ee..3f6e4e3b7 100644 --- a/app/controllers/user_controller.rb +++ b/app/controllers/user_controller.rb @@ -3,7 +3,7 @@ class UserController < ApplicationController before_filter :authorize, :only => [:preferences, :api_details, :api_gpx_files] before_filter :authorize_web, :only => [:account, :go_public, :view, :diary, :make_friend] - before_filter :require_user, :only => [:set_home, :account, :go_public, :make_friend] + before_filter :require_user, :only => [:set_home, :account, :go_public, :make_friend, :api_details] def save @title = 'create account' diff --git a/app/views/site/index.rhtml b/app/views/site/index.rhtml index 15683daf3..1e2fa3ad1 100644 --- a/app/views/site/index.rhtml +++ b/app/views/site/index.rhtml @@ -20,6 +20,12 @@ <%= javascript_include_tag 'map.js' %> + <% unless @user %> + + + <% end %> + +