]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/user_controller.rb
Change the gps_points table to store latitude and longitude values to
[rails.git] / app / controllers / user_controller.rb
index 5c95de0c9cad315e69830f3dff116e198e4386f4..e69ce313723431055e57b2e70a7c722b78251632 100644 (file)
@@ -33,8 +33,8 @@ class UserController < ApplicationController
         @user.pass_crypt_confirmation = params[:user][:pass_crypt_confirmation]
       end
       @user.description = params[:user][:description]
         @user.pass_crypt_confirmation = params[:user][:pass_crypt_confirmation]
       end
       @user.description = params[:user][:description]
-      @user.home_lat = home_lat.to_f
-      @user.home_lon = home_lon.to_f
+      @user.home_lat = home_lat
+      @user.home_lon = home_lon
       if @user.save
         flash[:notice] = "User information updated successfully."
       else
       if @user.save
         flash[:notice] = "User information updated successfully."
       else