From b358f3dc5bde0784738ba451014f3d6c12ff01af Mon Sep 17 00:00:00 2001 From: Connor Turland Date: Sat, 26 Jan 2013 00:46:03 -0500 Subject: [PATCH] fixed login bug --- app/controllers/users_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index d80ce66d..4a9dc625 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -47,11 +47,11 @@ class UsersController < ApplicationController @user.save # direct them straight to the metamaps manual map. - @connor = User.find(555629996) + @map = Map.first(:conditions => [ "id = ?", 5]) if @map - respond_with(@user, location: user_map_url(@connor,@map)) do |format| + respond_with(@user, location: map_url(@map)) do |format| end else respond_with(@user, location: root_url) do |format|